Skip to content

Show sign-in and account menu on mobile - #397

Merged
neuromechanist merged 1 commit into
stagingfrom
fix/mobile-header-account-menu
Oct 1, 2026
Merged

neuromechanist merged 1 commit into
stagingfrom
fix/mobile-header-account-menu

Conversation

@neuromechanist

@neuromechanist neuromechanist commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

On phones (880px and below) the header showed only the logo and the hamburger.
The whole actions group was display: none, so there was no Sign in link, and a signed-in user could not reach Upload dataset, My datasets, Settings or Admin.

  • The account control (Sign in, or the avatar menu) now stays in the header row, just left of the hamburger, outside the hamburger panel.
  • On mobile the account panel hangs from the header and is pinned to the page gutters. (Corrected after review: anchored to the avatar, a normal address fit at 320px with 6px to spare, but an address longer than about 30 characters widened the panel past the left edge. Pinned, the address truncates. See Fix the findings of the 0.2.27 release review #404.)
  • The hamburger panel and the account menu close each other.
  • Tap targets are 44px (avatar, Sign in, hamburger, menu items).
  • The Sign in label wrapped to two lines at 320px; it no longer does, and the logo is 30px tall below 340px to make room.
  • The theme toggle stays desktop-only, as before. Signed-in readers still have Appearance in Settings.

Desktop is unchanged.

Testing

  • bun run lint, bun run typecheck (0 errors), bun run test (2691 passed)
  • Chrome at 320, 360, 390, 768 and 1280px, light and dark, as a dev admin (@nemar.admin) and signed out
  • At 320px: panel spans the gutters (16 to 304px), no horizontal overflow, Sign in on one line
  • Opening either menu closes the other, aria-expanded stays in sync
  • Admin from the mobile menu lands on /admin
  • The marketing host's own Sign in pill (.site-header__signin, a 44px height rule) was not rendered; Vite returns 403 for the nemar.org Host header locally. Worth a look on test.nemar.org, though that host runs in single-host mode, so production after promotion is the real check (website#212).

The 880px breakpoint hid the whole actions group, so a phone had no
Sign in link and a signed-in user could not reach Upload, My datasets,
Settings or Admin. The account control now stays in the header row,
just left of the hamburger.

On mobile its panel hangs from the header and is pinned to the page
gutters (it ran off the left edge at 320px when anchored to the
avatar). The hamburger panel and the account menu close each other.
Tap targets are 44px, the Sign in label no longer wraps at 320px, and
the logo is 30px tall below 340px. The theme toggle stays desktop-only.

Tested in Chrome at 320, 360, 390, 768 and 1280px, light and dark, as
a dev admin and signed out; lint, typecheck and unit tests pass. The
marketing host's Sign in pill was not rendered (Vite blocks the host).
@cloudflare-workers-and-pages

Copy link
Copy Markdown

@neuromechanist
neuromechanist merged commit 0e92679 into staging Oct 1, 2026
5 checks passed
@neuromechanist
neuromechanist deleted the fix/mobile-header-account-menu branch October 1, 2026 15:26
neuromechanist added a commit that referenced this pull request Oct 1, 2026
Entries for the mobile header fix (#397) and the OSA 0.8.16 pin (#398), the
existing Unreleased entries moved under the release each shipped in, and
0.2.16 to 0.2.23 written from the PRs in each release's notes. Docs only.
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