Open technetium opened 1 year ago
A solution that worked for me was generating a fixed size canvas, i.e. 300x300, and applying CSS scaling to it, which dynamically updates to fill it in w/ the parent node.
https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/scale
A solution that worked for me was generating a fixed size canvas, i.e. 300x300, and applying CSS scaling to it, which dynamically updates to fill it in w/ the parent node.
https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/scale
Hey @jzombie do you have a codesandbox for the solution you mentioned? I couldn't make it work
I have a responsive design, the size of the canvas where I want to show the QR code can vary. How to I make the QR code the same size as the canvas.
I've tried setting the width and height to:
Has anybody another suggestion?