fix: mobile layout — prevent horizontal overflow on notifications page
- AuthGuard: switch outer shell from h-dvh to fixed inset-0 so the container always matches the visual viewport regardless of Android Chrome address-bar state; add min-w-0 to content column so flex children (e.g. long ntfy URL input) cannot force the column wider than the viewport - Notifications page: add overflow-x-auto + shrink-0 to both tab bars so button overflow scrolls within the bar instead of escaping to the page; add min-w-0 to all inline label/hint div pairs in ModeFilterSection and Discovery so they shrink correctly in flex layout; add break-all to bill title line-clamp paragraph Authored by: Jack Levy
This commit is contained in:
@@ -42,7 +42,7 @@ export function AuthGuard({ children }: { children: React.ReactNode }) {
|
||||
|
||||
// Authenticated or guest browsing: render the full app shell
|
||||
return (
|
||||
<div className="flex h-dvh bg-background">
|
||||
<div className="fixed inset-0 flex overflow-hidden bg-background">
|
||||
{/* Desktop sidebar — hidden on mobile */}
|
||||
<div className="hidden md:flex">
|
||||
<Sidebar />
|
||||
@@ -59,7 +59,7 @@ export function AuthGuard({ children }: { children: React.ReactNode }) {
|
||||
)}
|
||||
|
||||
{/* Content column */}
|
||||
<div className="flex-1 flex flex-col min-h-0">
|
||||
<div className="flex-1 flex flex-col min-h-0 min-w-0">
|
||||
<MobileHeader onMenuClick={() => setDrawerOpen(true)} />
|
||||
<main className="flex-1 overflow-auto">
|
||||
<div className="container mx-auto px-4 md:px-6 py-6 max-w-7xl">
|
||||
|
||||
Reference in New Issue
Block a user