2
0
Fork 0

fix: keep the PWA update banner on one line #40

Merged
aleksei merged 2 commits from fix/pwa-update-banner into main 2026-11-16 22:43:06 +00:00
Owner

Summary

  • Reduce the PWA update banner shadow from lg to sm.
  • Give the banner an explicit phone width of calc(100vw - 1rem) instead of relying on shrink-to-fit at left: 50%. At a 360 px viewport this makes it 344 px wide and keeps the message and Reload button on one line.
  • Keep the desktop width content-sized and distribute the text and button with space-between.
  • Update the README and adr/ui.md.

Test plan

  • npm run typecheck
  • npm run build
  • Mobile Playwright check at 360 px: banner width 344 px, text range has one client rect, box-shadow is the sm token.
## Summary - Reduce the PWA update banner shadow from `lg` to `sm`. - Give the banner an explicit phone width of `calc(100vw - 1rem)` instead of relying on shrink-to-fit at `left: 50%`. At a 360 px viewport this makes it 344 px wide and keeps the message and Reload button on one line. - Keep the desktop width content-sized and distribute the text and button with `space-between`. - Update the README and `adr/ui.md`. ## Test plan - `npm run typecheck` - `npm run build` - Mobile Playwright check at 360 px: banner width 344 px, text range has one client rect, `box-shadow` is the `sm` token.
The bar uses a small shadow and spans the viewport minus 1rem on phones, so the message and Reload button no longer wrap at a 360px width.
aleksei deleted branch fix/pwa-update-banner 2026-11-16 22:43:06 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
zoo/mux-portal!40
No description provided.