From b505d68ef0ac4d52ee94a85b4e6b113c9d8d35c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Falc=C3=B3n?= Date: Mon, 13 Apr 2026 13:59:05 +0100 Subject: [PATCH] fix: keep iOS content below the notch (#280) ## Summary - move the top safe-area inset from the mobile header to the shared authenticated content shell - keep scrolling content on iOS sidebar pages from sliding under the notch - add a focused regression test for the shared layout safe-area placement ## Testing - vendor/bin/pint --dirty --format agent - php artisan test --compact tests/Feature/AuthenticatedLayoutSafeAreaTest.php --- resources/js/components/app-sidebar-header.tsx | 2 +- resources/js/layouts/app/app-sidebar-layout.tsx | 2 +- tests/Feature/AuthenticatedLayoutSafeAreaTest.php | 9 +++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 tests/Feature/AuthenticatedLayoutSafeAreaTest.php diff --git a/resources/js/components/app-sidebar-header.tsx b/resources/js/components/app-sidebar-header.tsx index 36c63423..897206f4 100644 --- a/resources/js/components/app-sidebar-header.tsx +++ b/resources/js/components/app-sidebar-header.tsx @@ -30,7 +30,7 @@ export function AppSidebarHeader({ (hasEncryptedTransactions || hasEncryptedAccounts); return ( -
+
{mobileLeading ?? }
diff --git a/resources/js/layouts/app/app-sidebar-layout.tsx b/resources/js/layouts/app/app-sidebar-layout.tsx index f4b399ef..a00bd4d4 100644 --- a/resources/js/layouts/app/app-sidebar-layout.tsx +++ b/resources/js/layouts/app/app-sidebar-layout.tsx @@ -23,7 +23,7 @@ export default function AppSidebarLayout({ toContain('className="pt-safe overflow-x-hidden pb-[90px] sm:pb-0"') + ->and($header)->not->toContain('pt-safe'); +});