Fix PNG deck width in a less stupid way
This commit is contained in:
parent
2c819ad02e
commit
058b4cf8be
@ -62,6 +62,7 @@
|
||||
<style>
|
||||
.deck {
|
||||
white-space: nowrap;
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
.deck svg {
|
||||
|
@ -130,7 +130,7 @@
|
||||
}
|
||||
|
||||
let node = this.$refs.deck.$el;
|
||||
html2canvas(node, {scale: 1, width: node.scrollWidth,
|
||||
html2canvas(node, {scale: 2,
|
||||
backgroundColor: 'black',
|
||||
onclone: bindStyles})
|
||||
.then(canvas => canvas.toDataURL("image/png"))
|
||||
|
Loading…
Reference in New Issue
Block a user