From c6870c44f3051fad2efdff9cbdc954b1a540fa2d Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 17 Jul 2026 17:56:04 +0000 Subject: [PATCH] Fix black band under phone content when iOS Safari toolbar collapses Size the fixed phone shell and fullscreen overlays from their inset-0 containers instead of 100dvh. iOS Safari re-resolves dvh lazily while its bottom toolbar collapses/expands (especially with body scrolling disabled), so the dvh-sized shell kept its stale shorter height and clipped content, leaving a dead black band above the toolbar. Fixed insets track the live viewport through the whole transition, so content now fills the screen edge to edge. Same dvh -> full swap applied to the fullscreen Sheet variant, the left drawer, the settings dialog, and the fullscreen scope sheet, which shared the identical hazard. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01CkCda13HLjNhg7oDycmoSh --- .../clinical-dashboard/global-search-shell.tsx | 9 +++++++-- .../clinical-dashboard/master-search-header.tsx | 2 +- src/components/clinical-dashboard/settings-dialog.tsx | 2 +- src/components/ui/sheet.tsx | 7 +++++-- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/src/components/clinical-dashboard/global-search-shell.tsx b/src/components/clinical-dashboard/global-search-shell.tsx index a3397ec2c..f566e9810 100644 --- a/src/components/clinical-dashboard/global-search-shell.tsx +++ b/src/components/clinical-dashboard/global-search-shell.tsx @@ -476,7 +476,12 @@ function GlobalStandaloneSearchShellClient({ return (
) : null} -
+
-
+
{closeButton}