Skip to content

On a phone, the sidebar's rows and the buttons around the message are a fingertip's size - #3035

Draft
ataibarkai wants to merge 2 commits into
mainfrom
claude/mobile-touch-pass-a99f3f
Draft

ataibarkai wants to merge 2 commits into
mainfrom
claude/mobile-touch-pass-a99f3f

Conversation

@ataibarkai

@ataibarkai ataibarkai commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

On a phone, before → after (375×812, touch, the live app against OpenBot Cloud; private titles and messages blurred)

Chats (before · after) Bots panel, a Bot open (before · after) A conversation's top bar and message box (before · after)
Chats on a phone, before and after Bots panel on a phone, before and after A conversation on a phone, before and after

With a mouse: unchanged (every size measured the same as on main)

The web app in a desktop window with a mouse, unchanged

What was awkward on a phone

The sidebar was drawn for a mouse. A conversation's row was 32px tall, a Bot's 36px, and New conversation under a Bot 28px. The gear was 36px and the words were 14px. The buttons in a conversation's top bar and under the message box were 32px, with 4–6px between neighbours (Computer and the Bot's settings; dictate and send).

What changes, only where a finger is the pointer (pointer: coarse)

  • Chats: one-line rows are 44px, with 16px titles and a 24px orb (was 20).
  • Bots panel: a Bot's row is 44px with its name at 16px, and the gear is 44×44. The caret is 44px tall but keeps its 36px width: it's only a sign (the whole row is what you tap), so the name keeps that room.
  • Under an open Bot: New conversation, its conversations and Show more are 44px, at 16px.
  • Panel headers: New conversation and New Bot are 44×44.
  • Top bar: the sidebar toggle (on every page) and a conversation's Computer, Task and Bot buttons are 40px. The bar gives up some padding, so it stays 48px tall.
  • Message box: every toolbar button (attach, model, dictate, send/stop) is at least 40px.

Each change is a pointer-coarse: class, plus one useTouchTyping() for the Chats orb, whose size is a number prop. With a mouse or trackpad nothing changes, in a narrow window too. No primitive or token changed.

Why these sizes

One open question, not in this PR

At 16px, some Bot names get cut sooner in the phone sheet. shadcn's Sheet draws it at 75% of the screen (281px on a 375px phone), while the other assistants' drawers are about 310–320px. Widening it means changing the sidebar primitive, so per docs/design-system.md it would be a separate PR, agreed first.

Changelog

Web app.

  • Changed: on a phone, the sidebar and the buttons around the message are easier to tap. Conversation and Bot rows, New conversation, Show more and the gear are 44px tall with larger words, and the buttons in a conversation's top bar and under the message box are 40px. With a mouse or trackpad nothing changes.

Tests

  • app/tests/bots-panel-start-conversation.test.tsx has a new real-browser test on an iPhone 15 profile (WebKit) and a Pixel 7 profile (Chromium). It checks the size of every row, the gear, New Bot, the toggle and a Chats row, and that taps open a Bot and a conversation and close the sheet. The same checks in a narrow and a wide window with a mouse keep today's sizes. It fails on main (the phone gets 36/32/28px and 14px) and passes here.
  • Ran locally:
    • that file and the 24 other real-browser test files that draw these parts, in Chromium and WebKit (406 pass, 0 fail);
    • the 81 test files that touch these components (662 pass, 0 fail);
    • tsc and biome lint/format.

Not checked, and notes

🤖 Generated with Claude Code

ataibarkai and others added 2 commits December 5, 2026 12:25
… a fingertip's size

Where a finger is the pointer (pointer: coarse), and only there:
- conversation rows in Chats and under an open Bot are 44px, titles 16px, the Chats orb 24px;
- a Bot's row is 44px with its name at 16px, the gear 44x44, the caret 44px tall;
- New conversation and Show more under a Bot are 44px; New conversation and New Bot in the
  panel headers are 44x44;
- the sidebar toggle and a conversation's top-bar buttons are 40px, and the bar keeps 48px;
- every button in the message box's toolbar is at least 40px.

With a mouse or trackpad every size is what it was. A browser test on an iPhone 15 (WebKit) and a
Pixel 7 (Chromium) profile checks the sizes and that a tap does what a press does, and that a
narrow and a wide window with a mouse keep theirs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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