Repository navigation
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
Draft
ataibarkai wants to merge 2 commits into
ataibarkai wants to merge 2 commits into
Conversation
… 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On a phone, before → after (375×812, touch, the live app against OpenBot Cloud; private titles and messages blurred)
With a mouse: unchanged (every size measured the same as on
main)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)Each change is a
pointer-coarse:class, plus oneuseTouchTyping()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.mdit would be a separate PR, agreed first.Changelog
Web app.
Tests
app/tests/bots-panel-start-conversation.test.tsxhas 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 onmain(the phone gets 36/32/28px and 14px) and passes here.tscand biome lint/format.Not checked, and notes
mobile/onmain: it is the native Expo app, so none of this reaches it. The open web-view shells (OpenBot Mobile: the web app in a web view for now, with the launch, push and the way out kept native #2241, Phone app without a tab bar: the web app's own navigation inside the native shell, lightly tuned #2420, iOS app: a no-tab-bar variant that keeps the web app's own sidebar and history (experimental, off by default) #2450) would get it, since a phone's web view reportspointer: coarse.[atai-codex]native-shell draft also enlarged phone rows. This is the small, web-only part.🤖 Generated with Claude Code