fix(layout): use flexbox so header growth doesn't overlap content #28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/mobile-header-overlap"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
MainSplithardcodedheight: calc(100dvh - 60px), assuming a 60px header. On narrow viewports the header (Agent Nexus + tabs + Lock) wraps to two lines and grows past 60px, so the right-pane terminal extended past the viewport bottom and was clipped — the bottom of the terminal (and on the empty state, the "Click files…" sub-text) sat under nothing visible.Switch
bodytodisplay: flex; flex-direction: column. Header keeps its natural height as a flex item;mainbecomesflex: 1 1 auto; min-height: 0and fills whatever's left.MainSplitswitches toheight: 100%(of its parentmain) and is nowposition: relativeso its mobile.right-paneoverlay (which usedinset: 60px 0 0 0) caninset: 0within the split instead of the viewport.The other routes (Settings, Providers, Config) still scroll the body normally —
mainkeeps itsmax-width: 640pxandpadding-bottom: 80pxcentering for those pages.Test plan
pnpm lint— cleanpnpm typecheck— cleanpnpm test— 474/474 passing