fix(ui): fit the signed-in header on phones #27

Manually merged
jfro merged 0 commits from fix/23-header-overflow into main 2026-11-01 17:48:02 +00:00
Owner

Closes #23 (gap audit F4).

At 390px the header's right-hand actions (theme toggle, avatar, Ask, History, Settings, Log out) didn't fit beside "Lamplighter", so every signed-in page was 472px wide and scrolled sideways.

Under sm, on signed-in pages:

  • the brand shows only the logo (the name stays as sr-only, so the link is still labelled);
  • the avatar is hidden (it's display-only, and the email was already hidden below md);
  • the action gap goes from 8px to 4px.

Desktop is unchanged; logged-out pages keep the name.

Measured document.documentElement.scrollWidth on /, /history, /settings/sources and /users/settings: 472 on main, 390 at 390px and 360 at 360px on this branch. mix precommit passes.

Desktop and 390px, signed in:
23-header-desktop
23-header-mobile

Closes #23 (gap audit F4). At 390px the header's right-hand actions (theme toggle, avatar, Ask, History, Settings, Log out) didn't fit beside "Lamplighter", so every signed-in page was 472px wide and scrolled sideways. Under `sm`, on signed-in pages: - the brand shows only the logo (the name stays as `sr-only`, so the link is still labelled); - the avatar is hidden (it's display-only, and the email was already hidden below `md`); - the action gap goes from 8px to 4px. Desktop is unchanged; logged-out pages keep the name. Measured `document.documentElement.scrollWidth` on `/`, `/history`, `/settings/sources` and `/users/settings`: 472 on main, 390 at 390px and 360 at 360px on this branch. `mix precommit` passes. Desktop and 390px, signed in: ![23-header-desktop](https://git.knope.dev/attachments/d90f3030-3265-4d94-997f-f4b7ea4e7909) ![23-header-mobile](https://git.knope.dev/attachments/6ffc2e43-52c1-454e-87c6-51b77ef66d27)
jfro added this to the v1.0 milestone 2026-11-01 17:07:05 +00:00
fix(ui): fit the signed-in header on phones
All checks were successful
CI / test (pull_request) Successful in 23s
95a94ec906
At 390px the header's actions didn't fit beside the brand, so every
signed-in page was 472px wide and scrolled sideways. Under sm, signed-in
pages show just the logo (the name stays for screen readers), hide the
avatar, and tighten the gaps; pages now fit 360px.

Closes #23
Author
Owner

Review (Nye) at 95a94ec: ready.

Checked in Chromium against a dev server with demo data: no signed-in page scrolls sideways at 390 or 360 (main was 472px wide). Ask / History / Settings / Log out are all visible and tappable at 390; desktop is unchanged.

Non-blocking: 320px is still 4px too wide (324); the avatar/email is hidden on phones (the Account tab is still reachable via Settings).

Desktop 390px
desktop home 390 home
desktop sources 390 sources
390 chat open
Review (Nye) at 95a94ec: ready. Checked in Chromium against a dev server with demo data: no signed-in page scrolls sideways at 390 or 360 (main was 472px wide). Ask / History / Settings / Log out are all visible and tappable at 390; desktop is unchanged. Non-blocking: 320px is still 4px too wide (324); the avatar/email is hidden on phones (the Account tab is still reachable via Settings). | Desktop | 390px | |---|---| | ![desktop home](https://git.knope.dev/attachments/e154b4a3-6737-4961-ad7c-3a874c973eec) | ![390 home](https://git.knope.dev/attachments/6d21f6a3-6ae0-4e27-9dc4-3bd45b3091e2) | | ![desktop sources](https://git.knope.dev/attachments/8621f795-a886-4f90-935a-1e36cef06cc4) | ![390 sources](https://git.knope.dev/attachments/76b4ac03-db2f-45e5-87ce-016348d541aa) | | | ![390 chat open](https://git.knope.dev/attachments/3b80d989-19ce-44e1-9cc8-32bb12f01632) |
jfro manually merged commit 1672580f60 into main 2026-11-01 17:48:02 +00:00
Sign in to join this conversation.
No description provided.