Repository navigation
ui: make the app feel native on phones - #31949
Merged
Merged
Conversation
On a phone the sidebar now stays put under the page, and the page slides right to uncover it, as a rounded card with the card border. The menu button rides on the page; a swipe from the left edge opens the sidebar, and a swipe back or a tap on the page closes it. Assisted-by: Claude (Opus 5.5 Medium)
Holding a conversation row on a phone opens its action menu anchored to the row, in place of the hidden three-dot trigger. The page no longer widens the document when it slides aside, so iOS stops panning it on the first open. The page and sidebar backgrounds start in the page color and blend into the sidebar tint as the sidebar opens, following a drag frame by frame, and a theme-color tag follows them for the browser bars. The sidebar's contents fade in on a log curve and scale up slightly, and sit at the same inset as the menu toggle, which now uses a two-line icon in a filled circle. Assisted-by: Claude (Opus 5.5 Medium)
On a phone the context gauge leaves the chat form for the top right of the chat screen, in a round button across from the menu toggle. Both take the scroll-down button's frosted look. While the sidebar is out, and until the page is fully back in place, the page neither scrolls nor takes taps; a tap or drag on it still closes the sidebar. Assisted-by: Claude (Opus 5.5 Medium)
A rightward swipe from anywhere on the page now opens the phone sidebar too, beside the edge swipe that competes with the browser's own back and forward gesture. It starts after a short sideways move, skips text fields and content that scrolls sideways, and keeps the page from scrolling under it. Letting go opens or closes the sidebar past 30% of the way or on a flick. The top buttons and the chat form now hold their place on screen while the page is slid aside, instead of jumping to the far ends of a scrolled conversation. Assisted-by: Claude (Opus 5.5 Medium)
A phone's model selector is narrow, so it now drops the organization from model names by default. A new Display setting, "Show organization name on mobile", brings it back; it applies only while the organization name is shown at all. Assisted-by: Claude (Opus 5.5 Medium)
On a phone, picking a conversation, New chat, Search, MCP or Settings in the open sidebar now slides it shut first and acts 180ms later, so the page or dialog appears once the sidebar is out of the way. With the sidebar already closed, or on a desktop, the action runs at once. Assisted-by: Claude (Opus 5.5 Medium)
Applies the mobile-native checklist: no tap highlight or landscape text inflation, instant taps on buttons and links, no label selection or callout on a held control, hover styles only where a pointer can hover, and 16px textareas on phones so focusing them does not zoom the page. The page now runs under the notch (viewport-fit=cover), so the installed iOS app tints its status bar from the page and the sidebar. The menu toggle, the context gauge, the sidebar and the top of the chat and models pages pad themselves clear of it, and the locked, slid page reaches down by the status bar's height, which iOS leaves out of it. Assisted-by: Claude (Opus 5.5 Medium)
With VITE_DEBUG set, a dev build shows the window, viewport unit and safe-area heights, and the elements that reach past the window's bottom and make the page scroll. It is loaded on demand, so production builds leave it out. Assisted-by: Claude (Opus 5.5 Medium)
iOS 26 gives an installed app with viewport-fit=cover and a translucent status bar a viewport short of that bar (WebKit bug 301108), clipping the bottom of the page and lifting the chat form, but only while the page is shorter than the screen. In the installed app the page now reaches the screen plus the status bar, capped at the screen, so it gets the full screen from the start without ever scrolling. Assisted-by: Claude (Opus 5.5 Medium)
The installed app's status bar already sets the menu toggle, the context gauge and the open sidebar's logo apart from the screen's edge, so they sit just below it rather than a full 1rem lower. They share one value, which stays at 1rem below the inset in a browser tab. Assisted-by: Claude (Opus 5.5 Medium)
The page runs under the status bar and over the home indicator, which an installed iPhone app always shows. New pt-safe, pb-safe, top-safe and bottom-safe utilities, each with a spacing step (pt-safe-12 is 3rem plus the top inset), keep pinned content clear of them instead of hand-written calc()s. A --safe-area-bottom joins --safe-area-top, and the chat screen and Models page use pt-safe-12. Assisted-by: Claude (Opus 5.5 Medium)
A phone used to leave for the /search page. It now opens the same search as the desktop dialog, in a bottom drawer that fills the screen below the status bar. Keyboard shortcuts, the Enter hint and the keyboard highlight stay on desktop, and so does the models manager, as in the phone sidebar. Assisted-by: Claude (Opus 5.5 Medium)
A phone now shows every dialog full screen, whatever size it asks for on a desktop, instead of each full-screen dialog repeating its own classes. Its top and bottom borders take the status bar's and the home indicator's height, transparent, so an installed app's dialogs keep their content clear of both with no change to their padding. The attachment preview, which has its own full-screen content, pads itself and lowers its close button the same way. Assisted-by: Claude (Opus 5.5 Medium)
…ones Assisted-by: Claude (Opus 5.5 Medium)
Assisted-by: Claude (Opus 5.5 Medium)
Assisted-by: Claude (Opus 5.5 Medium)
…ed iOS app Assisted-by: Claude (Opus 5.5 Medium)
Assisted-by: Claude (Opus 5.5 Medium)
…ly well above Assisted-by: Claude (Opus 5.5 Medium)
…ebar Assisted-by: Claude (Opus 5.5 Medium)
…s the corners Assisted-by: Claude (Opus 5.5 Medium)
…ick it in a drawer Assisted-by: Claude (Opus 5.5 Medium)
…phones Assisted-by: Claude (Opus 5.5 Medium)
…o taps Assisted-by: Claude (Opus 5.5 Medium)
…owsers Assisted-by: Claude (Opus 5.5 Medium)
…form's Assisted-by: Claude (Opus 5.5 Medium)
Assisted-by: Claude (Opus 5.5 Medium)
…h a haptic tap Assisted-by: Claude (Opus 5.5 Medium)
… sidebar Fading them out with the slide made the page flicker; the rounded frame over the slid page already clips them at its corners. Assisted-by: Claude (Opus 5.5 Medium)
… trigger The phone layout opens the picker from the chat's header, so ChatForm hides the chip there. Master's version of the chip has no such switch; bring it back. Assisted-by: Claude (Opus 5.5 Medium)
…ystem lands Assisted-by: Claude (Opus 5.5 Medium)
… it lands Assisted-by: Claude (Opus 5.5 Medium)
Assisted-by: Claude (Opus 5.5 Medium)
…m lands Resolving the safe-area commit took the design system's app.css, which drops the palette for its token files and aliases the shadcn names to semantic tokens. With the tokens gone those aliases point at themselves, so every colour went invalid: transparent surfaces and currentColor borders. Assisted-by: Claude (Opus 5.5 Medium)
An alert is a short question, not a drawer: on a phone it is now a centered card, 90% of the screen wide and as tall as its text, scrolling only past the screen's height. It zooms in as on desktop, and its footer drops the margin the sheet needed. Assisted-by: Claude (Opus 5.5 Medium)
The drawer reused the popover's compact picker: Browse sat against the search field, the divider ran past the rows and each row had its own inset. In the drawer the picker now takes the header's inset, gives Browse room, lines its rows up with the search results and sizes its text for a phone. Assisted-by: Claude (Opus 5.5 Medium)
allozaur
marked this pull request as ready for review
November 9, 2026 15:52
allozaur
requested review from
ServeurpersoCom
and
a balanced review from Copilot
November 9, 2026 15:52
Contributor
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
allozaur
commented
Nov 9, 2026
A phone now confirms a sent message by feel, at the moment the send goes through (not on every press of the button), and before any await, so it still runs inside the tap or keypress that iOS needs to play its tick. The hold that opens a row's menu now taps the engine from the long-press hook itself, once: the hook vibrated and the row tapped as well, which buzzed twice on Android. Assisted-by: Claude (Opus 5.5 Medium)
…sidebar fade Review follow-ups: the context gauge dial reads its grid, radius, stroke and track from one table per size instead of ternaries; the chat form's distance from the screen's bottom per platform and the sidebar content's fade duration are named constants. The viewport debug readout moves out of src, next to the tests, as it is a debug tool the app only loads in a dev build. Assisted-by: Claude (Opus 5.5 Medium)
A llama-server opened over plain HTTP on the local network or over Tailscale is not a secure context, where browsers hide the microphone, so a tap on the mic did nothing but log to the console. The button now shows a crossed-out mic in the warning tone with the reason in its tooltip, and a tap says it in a toast, as a phone shows no tooltip. A start that fails names the browser's reason (access denied, no microphone, in use by another app) the same way, and the next tap tries again. The recorder passes the browser's error on instead of replacing it with a generic one. Assisted-by: Claude (Opus 5.5 Medium)
ServeurpersoCom
approved these changes
Nov 9, 2026
ServeurpersoCom
left a comment
Contributor
There was a problem hiding this comment.
Reviewed the code: the reveal and long-press hooks are self-contained, every tunable is a named constant, and the debug probe stays out of the production bundle. Android side looks right from the code; I can't vouch for the installed iOS app paths you flagged as pending an iPhone check.
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.
Overview
On phones the sidebar slides in under the page, rows open their menu on press and hold, the layout respects the safe areas and the page fades out under the status bar, and every dialog, search included, is full screen.
Demo
Recorded at d2f3c91; click a preview for its full video.
Additional information
This uses Llama Chat's current styles. The design system that restyles these screens comes in a later PR.
What changed
Testing
npm run checkpasses on this branch; CI runs the tests.pointer-events: noneis never hit. It now takes taps, confirmed in Safari on an iPhone.Demo script
Requirements
Claude (Opus 5.5 Medium)