From 3c4448d2f47503b4a0a7cfdb6a007f2c9c531421 Mon Sep 17 00:00:00 2001 From: olegberman Date: Wed, 29 Jul 2026 22:32:47 -0400 Subject: [PATCH] Fix mobile overlay safe areas --- CHANGELOG.md | 7 ++++++ app/components/ui/sheet.tsx | 9 +++++-- app/features/compose/compose-form.tsx | 8 +++++- app/features/compose/compose-window.tsx | 2 +- .../compose/thread-compose-surface.tsx | 2 +- package.json | 2 +- test/unit/app/layout/mobile-shell.test.ts | 25 +++++++++++++++++++ 7 files changed, 49 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index be84c03..4eb91b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.1.30 + +- Keep compact right-side sheet headers and close controls below the top device safe area. +- Place full-screen new-message, reply, and forward composer headers below the notch or Dynamic + Island. +- Add device-aware bottom spacing around new-message actions so they clear the home indicator. + ## 0.1.29 - Replace the available-update banner with an animated progress status after an update starts, then diff --git a/app/components/ui/sheet.tsx b/app/components/ui/sheet.tsx index 7ab1364..2ca5f87 100644 --- a/app/components/ui/sheet.tsx +++ b/app/components/ui/sheet.tsx @@ -32,14 +32,19 @@ export const SheetContent = React.forwardRef< "fixed inset-y-0 z-50 w-[min(92vw,480px)] bg-background p-5 shadow-lg motion-reduce:animate-none", side === "left" ? "left-0 border-r data-[state=closed]:animate-sheet-out-left data-[state=open]:animate-sheet-in-left" - : "right-0 border-l data-[state=closed]:animate-sheet-out-right data-[state=open]:animate-sheet-in-right", + : "right-0 border-l max-md:pb-[max(1.25rem,env(safe-area-inset-bottom))] max-md:pt-[max(1.25rem,env(safe-area-inset-top))] data-[state=closed]:animate-sheet-out-right data-[state=open]:animate-sheet-in-right", className )} ref={ref} {...props} > {children} - + Close diff --git a/app/features/compose/compose-form.tsx b/app/features/compose/compose-form.tsx index 627c9d5..4590b24 100644 --- a/app/features/compose/compose-form.tsx +++ b/app/features/compose/compose-form.tsx @@ -76,7 +76,13 @@ export function ComposeForm(props: ComposeFormProps): React.ReactElement { onChange={props.onEditorChange} /> -