Skip to content

feat: put the QR preview first and make the demo layout responsive - #22

Merged
Deityhub merged 2 commits into
mainfrom
feat/demo-responsive-layout
Nov 12, 2026
Merged

Deityhub merged 2 commits into
mainfrom
feat/demo-responsive-layout

Conversation

@Deityhub

Copy link
Copy Markdown
Owner

Summary

  • Remove the redundant Generate QR code button; the preview already updates as you type or change a setting
  • QR code, status line and Download SVG / PNG now come first (left column on desktop, top on phones); the settings follow (right column / below)
  • Fix content being cut off on small screens: the two-column grid had a 320px minimum column width, wider than a 360px phone minus the page padding, and the shell clips overflow. Columns now shrink, padding is tighter on small screens, the settings are a single column, and the download buttons sit side by side and wrap when needed
  • Settings selects are wide enough to show their full labels (they were truncated before, e.g. "M — recovers ~15")
  • Preview sizing now reads the frame's actual padding so the QR keeps a whole number of device pixels per module at every width
  • Updated docs/demo-browser.png for the new layout
  • Docs: the README examples and the demo default text use https://judeojini.com

Testing

Checked in the browser at 320, 360, 768 and 1280 px: no element overflows and the page doesn't scroll sideways; the preview is above the settings on narrow screens and left of them on desktop. Live preview, error-level change, quiet-zone warning, SVG and PNG downloads and Reset to defaults all work without the Generate button.

- Remove the redundant Generate button; the preview already updates as
  you type
- Show the QR code, status and download buttons first (left on desktop,
  top on phones) and the settings after them
- Stop clipping content on small screens: columns can shrink below
  320px, padding is tighter, settings are a single column and the
  download buttons wrap
- Update the demo screenshot
@Deityhub
Deityhub merged commit 0dd793f into main Nov 12, 2026
3 checks passed
@Deityhub
Deityhub deleted the feat/demo-responsive-layout branch November 16, 2026 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant