Fix PNG deck width in a less stupid way

This commit is contained in:
Adam Goldsmith 2019-01-10 15:47:12 -05:00
parent 2c819ad02e
commit 058b4cf8be
2 changed files with 2 additions and 1 deletions

View File

@ -62,6 +62,7 @@
<style>
.deck {
white-space: nowrap;
width: fit-content;
}
.deck svg {

View File

@ -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"))