Repository navigation
fix(modal): a sheet ends where a phone's keyboard begins - #395
Conversation
The scrim was fixed to the whole screen. An iPhone home screen app keeps the layout viewport at full height under the keyboard, so a bottom sheet sat behind it: the command palette's results ran under the keyboard, and a palette with few results was hidden whole, its search field included. While the keyboard is up the scrim is --app-height tall, as the shell is.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (1)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (5)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review. 📝 SummarySummary by CodeRabbit
WalkthroughMobile modal and command palette styles now account for a visible keyboard. The viewport regression script checks that the command palette and search field remain within a simulated keyboard-reduced viewport. ChangesMobile keyboard overlays
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk: ⚪ Minimal · up to The change sizes mobile overlays to the visible viewport, and the command-palette regression checks empty and unmatched searches. Native-device coverage is limited, but the reviewed evidence reveals no actionable merge risk. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 4 systems. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Bumps package.json and herdr-plugin.toml to 0.3.47, moves the Unreleased notes under [0.3.47] - 2026-10-03 (the two Fixed lists folded into one), and adds the compare link. Raises the remote PC bundle to 14 (new routes: `/api/tab/rename`, `/api/tab/close`): push the `remote-v14` tag and let the bundle workflow publish before running release.yml. Carries #374, #388, #389, #390, #391, #392, #394, #395. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Fable 5.1 <[email protected]>
Change
In the iPhone home screen app, a dialog with a text field went behind the keyboard.
.modal-scrimisposition: fixed; inset: 0, and at phone width its dialog is a bottom sheet. A home screen app keeps the layout viewport at full height while the keyboard is up, so the sheet's bottom edge was the screen's, under the keyboard: the command palette's list ran behind it, and a palette with few or no results was hidden whole, search field included (only the dimmed app was left on screen).While the keyboard is up (
data-keyboard,lib/viewport.ts) the scrim is now--app-heighttall, the same height the shell already takes, and a sheet drops its home-indicator padding. Nothing changes without a keyboard, or on a desktop. Every dialog on the shared scrim gets it: the palette, Settings, New workspace / New tab, the worktree dialogs, confirms, the row menu's sheet, Files and the file viewer.Found while checking #392 in the iOS Simulator; it predates the tab strip.
Validation
scripts/mobile-viewport-regression.ts(part ofscripts/ui-regression.ts): with the palette open and its search focused at a 500px visual viewport, the scrim ends at 500 and the palette and its search field are inside 0–500, with the full list and with a query that matches nothing. On main it fails:the scrim ends at the keyboard ({"scrim":{"top":0,"bottom":844},"palette":{"top":32,"bottom":844},…}).bun run typecheck,bun run build: pass.bun run test:unit: 1086 pass, 3 skip, 0 fail.bun scripts/ui-regression.ts: 59 PASS lines, exit 0.Not checked
interactive-widget=resizes-content), where the new height equals the old one.