Repository navigation
Fix mobile secondary panel overlapping device safe areas - #2909
Merged
SawyerHood merged 1 commit intoSep 3, 2026
Merged
Conversation
The compact secondary panel shelf renders through a body portal with fixed inset-y-0 positioning, bypassing the safe-area padding applied by AppLayout. On iPhone PWAs the top controls landed under the status bar. Reuse the same four-side safe-area padding classes AppLayout already uses so controls stay inside the device safe area while the background still extends edge to edge.
There was a problem hiding this comment.
🟢 Approval recommended
The change is a small, consistent reuse of existing AppLayout safe-area classes and is covered by a focused regression test.
Pull request overview
Fixes an iPhone PWA (viewport-fit=cover) layout bug where the portaled compact secondary right panel didn’t inherit AppLayout safe-area insets, causing top controls to overlap the iOS status bar.
Changes:
- Add the same four-side safe-area padding utility classes used by
AppLayoutto the portaledCompactSecondaryPanelShelfcontainer. - Add a regression test asserting the shelf includes all four safe-area padding classes.
File summaries
| File | Description |
|---|---|
| apps/app/src/components/secondary-panel/CompactSecondaryPanelShelf.tsx | Applies safe-area inset padding classes directly on the portaled shelf container to keep interactive content out of iOS system UI areas. |
| apps/app/src/components/secondary-panel/CompactSecondaryPanelShelf.test.tsx | Adds a regression assertion that the shelf carries the expected safe-area padding classes. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.
Fixes #2908
Problem
On iPhone PWAs (
viewport-fit=cover), the compact secondary right panel renders through a body portal withfixed inset-y-0, so it never inherits the safe-area paddingAppLayoutapplies. Top controls land under the status bar and their touch targets conflict with system UI.Fix
Reuse the exact same four-side safe-area padding classes
AppLayoutalready uses on the shelf container:The background still extends edge to edge; only interactive content is pushed inside the safe area.
Testing
apps/app/src/components/secondary-panel/CompactSecondaryPanelShelf.test.tsxCompactSecondaryPanelShelf.test.tsx: 14/14 passing on currentmain