Commit d2461ee
committed
fix(canvas): stop hardcoding inline CSS size on the output canvas
renderDiffToCanvas set canvas.style.width/height to the fixed
1200x675 social-share default. Inline styles win over the stylesheet's
responsive `width: 100%` rule, so every generated image forced the
card past the viewport on phones and tablets. Sizing the pixel buffer
(canvas.width/height) is enough for DPR-crisp rendering; display size
is the stylesheet's job.1 parent 307cbf5 commit d2461ee
1 file changed
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | 55 | | |
58 | 56 | | |
59 | 57 | | |
| |||
0 commit comments