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