Skip to content

Navbar: icons only from first paint on phones, bigger touch targets - #2067

Closed
joepio wants to merge 1 commit into
developfrom
claude/project-thread-c8bufb
Closed

joepio wants to merge 1 commit into
developfrom
claude/project-thread-c8bufb

Conversation

@joepio

@joepio joepio commented Oct 5, 2026

Copy link
Copy Markdown
Member

Requested by Joep · project thread

Before: On a phone (Android Chrome), the first load of the bar showed the text labels Comments, AI, Share and More, and the bar overflowed. A refresh fixed it. Buttons were small for fingers.

After: The bar is icons only from the first paint on narrow or touch screens. On touch devices the bar is taller (3.25rem) and each button is at least 44px.

The label hiding used to depend on a container query and a JS measurement that starts at "labels shown". It now also has a viewport media query (max-width: 600px or pointer: coarse), and the JS state is seeded from the same query.

How: NavBarButton.tsx (media query, touch target sizes), NavBar.tsx (initial state, search and icon buttons), styling.tsx (bar height variable on coarse pointers).

Screenshots: not attached yet, the local server would not build in the cloud session.


Generated by Claude Code

…r touch targets

The label-hiding relied on a container query plus a JS measurement, so on a
phone the first render could show Comments / AI / Share / More labels and
overflow until a refresh. Add a viewport media query (max-width 600px or
coarse pointer) and seed the icon-only state from it. On coarse pointers the
bar is taller and buttons are 44px.
@joepio joepio self-assigned this Oct 5, 2026
joepio added a commit that referenced this pull request Oct 6, 2026
One tested commit for the open PRs of 5 October: link device to account (#1948), one profile form (#1953), faster branch runs (#1956), end-to-end encrypted conversations (#1971), passkey ceremony header (#1972), Flutter account package (#2035), cheap canvas undo (#2053), atomic.place tab title (#2056), table resource cell (#2057), small table fixes (#2058), storage map (#2061), Sync page cloud ladder (#2072), several served-domain suffixes (#2073), one sign-in (#2074), smaller chat messages (#2077), bring-along e2e fix (#2078), inline row data loss (#2079), Retry-After (#2080), #2070, #2071, #2066, #2067, #2068, #1969, #1887, #1897 and #1920.

Compressed stored values from #2077 stay readable, but a downgrade cannot read compressed rows.

Co-authored-by: Joep Meindertsma <joep@ontola.io>
@joepio joepio closed this Oct 6, 2026
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