Skip to content

fix: make sidebar reachable on mobile and use dynamic viewport units - #37

Open
Kludex wants to merge 3 commits into
mainfrom
mobile-friendly-layout
Open

fix: make sidebar reachable on mobile and use dynamic viewport units#37
Kludex wants to merge 3 commits into
mainfrom
mobile-friendly-layout

Conversation

@Kludex

@Kludex Kludex commented Jul 5, 2026

Copy link
Copy Markdown
Member

On mobile the only SidebarTrigger was inside the sidebar itself, which shadcn renders as a closed off-canvas drawer below md - so conversation history, new-conversation, and the theme toggle were unreachable on phones. This adds a mobile-only header with a trigger outside the drawer, and swaps h-screen/basis-[100vh] for dvh units so the layout tracks the visual viewport when mobile browsers show/hide the URL bar and keyboard.

Kludex added 3 commits July 5, 2026 08:50
On viewports below md the only SidebarTrigger was rendered inside the
sidebar itself, which becomes a closed off-canvas drawer on mobile - so
the conversation list, new-conversation button, and theme toggle were
unreachable on phones. Add a mobile-only header with a SidebarTrigger
outside the drawer.

Also replace h-screen/basis-[100vh] with dvh units so the layout tracks
the visual viewport when mobile browsers show/hide the URL bar and
keyboard.
On narrow viewports the model and effort selects pushed the submit
button out of the viewport; let the tools wrap and stop the submit
button from shrinking.
Instead of wrapping, shorten the effort label to just the level below
sm and let the model select shrink and truncate, so the send button
stays visible without stacking the controls.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant