fix(layout): collapse sidebar to a drawer below the md breakpoint #43
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/mobile-drawer"
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?
lc-nav-panelelement that is hidden by default on mobile and pinned to the left as a fixed drawer when opened. Above the md breakpoint the panel returns to its normal in-flow position so the desktop layout is unchanged.htmx:wsOpenand other top-level scripts continue to live inside{% block main %}; only the chrome around them moved.Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com
- Below 768px the enclave switcher and main sidebar were eating most of the viewport, so the message pane had no usable width on phones. Wrap both navigation columns in a `lc-nav-panel` element that is hidden by default on mobile and pinned to the left as a fixed drawer when opened. Above the md breakpoint the panel returns to its normal in-flow position so the desktop layout is unchanged. - Add a hamburger button at the top of every page that opens the drawer, plus a backdrop that dismisses it. Clicks on a navigation link inside the drawer auto-close it so following a DM does not leave the drawer covering the conversation. - The `htmx:wsOpen` and other top-level scripts continue to live inside `{% block main %}`; only the chrome around them moved. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>