Skip to content

Conversation

@alexwarren
Copy link
Contributor

@alexwarren alexwarren commented Jan 25, 2026

This implements a responsive layout for the editor, with a Code/Preview button to toggle between the two panes at mobile widths.

Implements #124.

claude and others added 6 commits January 25, 2026 10:00
On screens narrower than 768px (Bootstrap md breakpoint):
- Hide split.js gutter to use full width for single pane
- Add toggle button to switch between code editor and preview
- Hide collapse/expand buttons to save toolbar space
- Allow toolbar to wrap on narrow screens

The toggle button shows which pane you can switch to (shows "Preview"
when viewing code, "Code" when viewing preview) with appropriate icons.
Hide Back/Restart buttons when viewing code and show them when viewing
preview. Hide Add section/passage buttons when viewing preview. Prevent
toolbar wrapping in preview mode to keep buttons on one line.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Hide collapse/expand buttons below 862px
- Hide add section/passage buttons below 590px
- Hide "Preview in new tab" button on mobile (toggle button is sufficient)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@alexwarren alexwarren merged commit 132105f into main Jan 25, 2026
5 checks passed
@alexwarren alexwarren deleted the claude/responsive-editor-layout-DNzxs branch January 25, 2026 11:03
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.

3 participants