fix(web): give phones a bottom navigation bar instead of the rail (UF-057)
At 375px the 64px icon rail took a fifth of the screen and Home's heading wrapped over five lines. Below sm the rail hides, a bottom bar carries the five places plus More (⌘K), and Home tightens its padding and heading.
This commit is contained in:
@@ -22,6 +22,7 @@ import BootScreen from './BootScreen';
|
||||
import StatusBar from './StatusBar';
|
||||
import RouteTransition from './RouteTransition';
|
||||
import Sidebar, { type SidebarNavItem } from './Sidebar';
|
||||
import MobileNav from './MobileNav';
|
||||
import AppErrorBoundary from './ErrorBoundary';
|
||||
import { adapter } from '@/lib/adapter';
|
||||
import { pickUserName } from '@/lib/user-name';
|
||||
@@ -473,7 +474,9 @@ const ShellLayout = () => {
|
||||
unreadNotifications={unreadCount}
|
||||
onSearchClick={() => ov.setShowGlobalSearch(true)} onNotificationClick={ov.toggleNotifications} />
|
||||
|
||||
<div className="absolute inset-x-0 top-8 bottom-0 flex">
|
||||
{/* Below sm the bottom bar (MobileNav, 56px plus the safe-area inset)
|
||||
replaces the rail, so the canvas stops above it. */}
|
||||
<div className="absolute inset-x-0 top-8 bottom-[calc(3.5rem+env(safe-area-inset-bottom))] flex sm:bottom-0">
|
||||
{/* Warm-Hive calm spine (ia.html) — five places + workspace pill +
|
||||
⌘K tile + user row; all remaining depth lives in ⌘K. */}
|
||||
<Sidebar
|
||||
@@ -502,6 +505,7 @@ const ShellLayout = () => {
|
||||
<RouteTransition />
|
||||
</main>
|
||||
</div>
|
||||
<MobileNav spine={spine} onOpenCommand={() => ov.setShowGlobalSearch(true)} />
|
||||
|
||||
{/* Overlays — Desktop.tsx:569-663 relocated; handlers retarget to
|
||||
navigate() per §1.2 / §2.2. */}
|
||||
|
||||
Reference in New Issue
Block a user