lyqht / mini-qr

Generate customized qr codes easily 👾
https://mini-qr-code-generator.vercel.app
GNU General Public License v3.0
531 stars 73 forks source link

Fix QR Code Resizing Visually #6

Closed lyqht closed 1 year ago

lyqht commented 1 year ago

Resolves #4

Context

Previously in the app, the QR code resizes as the user sets the width & height, causing significant layout shift. This is unpleasant for UX. It was done because the dom-to-image library requires the element to be visible in order to convert the element into an export format PNG/SVG/Blob.

Solution

This issue is fixed by:

Before

At width/height set as 2000px

CleanShot 2023-08-05 at 10 03 28@2x

After

At width/height set as 2000px

CleanShot 2023-08-05 at 10 02 54@2x

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
styled-qr-code-generator ✅ Ready (Inspect) Visit Preview Aug 5, 2023 5:00pm