Repository navigation
fix(mobile): drawer chat and Cupertino layout fixes - #596
Merged
Merged
Conversation
- A chat docked in a sidebar drawer painted the composer's fade band (and the top fade) in the page colour, a white slab on themes whose drawer uses --mobile-sidebar-background. - applyPromptSafeArea no longer moves a full-bleed theme's prompt down when its results list already pads past the island (Cupertino). The shift counted the inset twice and left an unblurred seam above the prompt. The model picker's filter bar now takes the inset itself, and the results' padding and fade mask are re-anchored below it. - The search modal's inline input drops the backdrop blur Cupertino puts on .prompt-input, which showed as a lighter rectangle inside the field. Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
[Medium impact] The PR appears safe to merge; the earlier remove-target overlap is fixed, and no new actionable issue was found. SummaryThis PR fixes phone layouts in sidebar chats and Cupertino-themed search and model pickers.
No new actionable issues were found. The earlier numbered finding is fixed. Review checks were source-based; no on-device runtime check was performed. Reviews (5) · Last reviewed commit: "fix(chat): keep phone remove targets ins..." · Reviewed by Greptile |
- Host a drawer chat's composer in .workspace-drawer-inner rather than .workspace-drawer. The inner box is its own stacking context (contain: content); as a later sibling of it the composer painted over the drawer's tab dropdown and swallowed its taps. - Context-tray buttons name .context-tray so themes' phone button rules (Cupertino: 48px height, padding 0 20px at (0,2,2)) no longer win: reference chips are content-sized again and the remove button is round. - On a phone a document attachment is one row (icon + ellipsized name) instead of a 56px card that wrapped short names; card radius capped at 12px. - Tests for applyPromptSafeArea's layout paths. Co-Authored-By: Claude <noreply@anthropic.com>
The composer and message area stopped at the navbar clearance, but under the default theme a drawer leaf ends well above that (its tab switcher and file header sit below the leaf), so the composer's action row ran behind the switcher. Publish the leaf's own bottom gap (keyboard down) and add it as a third term to the max() that picks the bottom edge. Co-Authored-By: Claude <noreply@anthropic.com>
The keyboard animation's band() mirrors the CSS max() that places the composer, but it was missing the leaf-bottom-gap term, so the composer dipped behind the tab switcher while the keyboard slid down. Co-Authored-By: Claude <noreply@anthropic.com>
File pills and reference chips are 36px tall on a phone (44px tap area for file pills), the file pill's remove button sits inside its right end instead of overhanging the corner, thumbnail remove badges get a 40px hit area, and the tray gets 8px of air above and below. Co-Authored-By: Claude <noreply@anthropic.com>
The thumbnail remove badge's extended hit area reached 16px past the tile on a 6px gap, so a wrapped row could remove the wrong attachment. It now grows only down and left (34px), and pill rows get an 8px row gap so their 4px extensions never meet. Co-Authored-By: Claude <noreply@anthropic.com>
Leo310
added a commit
that referenced
this pull request
Nov 26, 2026
Google Gemini (#584), Mistral (#585) and LM Studio (#583) as providers, a directory of OpenAI-compatible services under More providers (#589), and a per-agent reasoning effort (#582). Quoting chat text into the input (#593), chats that open where the last one was (#592), model details read from each provider instead of models.dev (#586), and mobile fixes for the sidebar drawer, the Cupertino theme, the formatting toolbar and the empty-chat greeting (#594, #595, #596). Co-Authored-By: Claude <noreply@anthropic.com>
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.
What
Mobile layout fixes found on an iPhone running the Cupertino theme:
.workspace-drawerboth now use--mobile-sidebar-background.applyPromptSafeAreamoved the whole prompt below the Dynamic Island, but Cupertino's results list already pads itself past the island. That counted the inset twice (a large empty gap above the first row) and, because the prompt carries the theme's backdrop blur, left an unblurred seam at 62px. The prompt now stays where the theme puts it unless the list doesn't clear the island. The model picker's filter bar takes the inset itself, and the results padding and the theme's fade mask are re-anchored below the bar.backdrop-filteron.prompt-inputsurvived our pill stripping and drew a lighter rectangle inside the field. It's removed there now.contain: content), and the composer was portaled next to it, so it painted over the open tab list and caught its taps. It is now hosted inside.workspace-drawer-inner, where the list (and Cupertino's scrim) stack above it.padding: 0 20px, specificity (0,2,2)) beat our scoped button rules. Tray button rules now name.context-tray, so chips are content-sized and the remove button is round again. On a phone a document attachment is now one row (icon + ellipsized name) instead of a 56px card that wrapped even short names.How I tested it
iPhone (iOS 26), Obsidian mobile, Cupertino light theme, 2.7.0-beta.6 installed, driven through the WebKit inspector bridge. I live-patched each fix on the device and compared screenshots before and after. The search modal now lines up with core's Quick Switcher; the model picker's pills sit right under the island with the list directly below; the drawer composer blends into the drawer. The built bundle itself has not been installed on the device yet. The dropdown, chip and file-card fixes were also live-tested on the device.
bun run check,format,lintandtest(2449, incl. newpromptLayouttests) pass.AI assistance: Claude Code (Opus) diagnosed this on-device and wrote the change from the maintainer's bug report; the maintainer still has to live-test the build.
Checklist
bun run check,bun run format,bun run lint, andbun run testpass locallymanifest.json: I noted that the docs site needs updating (see "Documentation" in CONTRIBUTING.md)