fix: small-screen responsiveness and settings menu stacking#72
Merged
Razee4315 merged 1 commit intoJun 11, 2026
Merged
Conversation
- Settings dropdown now renders above the floating Reader/Code mode toggle (z-[70] vs z-50; the toggle is mounted later in the DOM so it won the previous z-index tie) and scrolls on short screens instead of running underneath it. Export dropdown raised to match. - Title bar adapts to narrow windows: New/Open/Export labels collapse to icons below the sm breakpoint, the file name truncates, and the folder breadcrumb hides below md. - AI panel space reservation and mode-toggle offset clamp to min(400px, 90vw) so a narrow window isn't crushed by the open panel. - Settings modal sidebar narrows below sm; update dialog scrolls when taller than the viewport.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #71 — these fixes were pushed to that branch right after it was merged, so they're re-sent here on a clean branch off current
main.Fixes
Settings dropdown rendered underneath the Reader/Code mode toggle
The settings dropdown and the floating mode toggle both used
z-50; ties are broken by DOM order, and the toggle mounts later, so on short screens the (long) dropdown slid underneath it. The dropdown is nowz-[70](above the toggle, still below modals atz-[100]+) and getsmax-h-[calc(100vh-5rem)] overflow-y-autoso it scrolls on short screens instead of clipping. The Export dropdown had the same latent tie and was raised to match.Small-window responsiveness
smbreakpoint, the file name truncates with an ellipsis (max-w-[28vw]), and the folder breadcrumb hides belowmd— so nothing overflows at the 600px minimum window width.padding-rightand the mode toggle's offset now clamp tomin(400px, 90vw), mirroring the panel's ownmax-w-[90vw], so opening the panel in a narrow window no longer crushes the editor.w-36belowsmso the content pane keeps usable width when the modal shrinks to95vw.max-h-[90vh]) if taller than the viewport.Verification
bun run build✅ ·bun run test122/122 ✅