From 81d1fa816b4b14e32cc9c33a058d7e0fd092522d Mon Sep 17 00:00:00 2001 From: devops Date: Sat, 17 Oct 2026 18:47:20 +0000 Subject: [PATCH] fix(ux-31): eliminate 13px horizontal viewport overflow and align MobileBottomNav with safe-area --- frontend/application/app/globals.css | 2 +- .../components/MobileBottomNav.tsx | 2 +- .../__tests__/viewport-overflow.test.tsx | 36 +++++++++++++++++++ 3 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 frontend/application/components/__tests__/viewport-overflow.test.tsx diff --git a/frontend/application/app/globals.css b/frontend/application/app/globals.css index 1d726b95..5bf4f021 100644 --- a/frontend/application/app/globals.css +++ b/frontend/application/app/globals.css @@ -41,7 +41,7 @@ html, body { font-family: var(--font-vazir), "Vazirmatn", sans-serif !important; - @apply bg-medical-gray-50 text-medical-gray-900 antialiased max-w-[100vw] overflow-x-hidden; + @apply bg-medical-gray-50 text-medical-gray-900 antialiased w-full max-w-full overflow-x-clip; font-feature-settings: "ss01", "ss02", "cv01", "cv11"; } diff --git a/frontend/application/components/MobileBottomNav.tsx b/frontend/application/components/MobileBottomNav.tsx index edf1b34b..9c5014b4 100644 --- a/frontend/application/components/MobileBottomNav.tsx +++ b/frontend/application/components/MobileBottomNav.tsx @@ -505,7 +505,7 @@ export default function MobileBottomNav({ {/* 3. FIXED 5-TAB APP BOTTOM NAVIGATION BAR */}