Skip to content

Responsive hardening for new features (mobile overflow + 375px e2e)#44

Open
astrapi69 wants to merge 1 commit into
mainfrom
fix/responsive-hardening
Open

Responsive hardening for new features (mobile overflow + 375px e2e)#44
astrapi69 wants to merge 1 commit into
mainfrom
fix/responsive-hardening

Conversation

@astrapi69

Copy link
Copy Markdown
Owner

Closes #43

Honest follow-up to "did we do the responsive aspect?" - no deliberate pass had been done. The new components were responsive by default (viewport-relative widths, flex-wrap, auto-fill grids, safe-area-inset), but an audit found two overflow risks and zero mobile-viewport tests.

Fixes:

  • QrCodeModal - the QR image was a fixed 240px; now width:100% / max-width:240px / aspect-ratio:1 so it fits screens narrower than ~240px+padding.
  • PWA UpdatePrompt/InstallPrompt banner - the message+buttons row now flex-wraps (+ justify-content:flex-end) so it never overflows on narrow screens.

Test: e2e/smoke/responsive-mobile.spec.ts - at 375px asserts no horizontal overflow (scrollWidth <= viewport) on the command palette, About tab + QR modal, and Appearance/Data tabs.

Affected unit tests green; theme-token guard / eslint / build OK. The e2e runs against the auto-started stack (cd e2e && npx playwright test --project=smoke).

Still not covered (honest): a real manual device check (AL's Visueller Device-Check) - that's a human-on-device step.

…2e (#43)

No deliberate responsive pass had been done for this cycle's features.
Most are responsive by default (viewport-relative widths, flex-wrap,
auto-fill grids, safe-area); two overflow risks remained:
- QrCodeModal: the 240px QR image is now width:100% / max-width:240px /
  aspect-ratio 1 (fits screens narrower than 240px+padding).
- PWA UpdatePrompt/InstallPrompt banner: the message+buttons row now
  flex-wraps so it never overflows on narrow screens.

Adds e2e/smoke/responsive-mobile.spec.ts: at a 375px viewport, asserts the
command palette, About + QR modal, and Appearance/Data tabs produce no
horizontal overflow (scrollWidth <= viewport). Run via the e2e webServer.

Affected unit tests green; theme-token guard, eslint, build OK.

Closes #43
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.

Responsive hardening for the new UI features (mobile overflow + 375px e2e)

2 participants