Repository navigation
Let Settings set how wide notes run (#698) - #788
Merged
Merged
Conversation
Settings section 02, renamed Layout, gains Note width: Default, Wide or Full, saved as HATCHDOOR_NOTE_WIDTH and pinnable from .env like any live setting. It caps the note column in the Reading view and the live editor through new base.css tokens: Default is today's 38rem (--note-measure-default), Wide 48rem (--note-measure-wide, about 100 characters a line), Full no cap. Source keeps its 1120px column unless Full is picked, and Help's manual is drawn outside the layout, so it stays at Default. The server gains a choice kind: a pinned value reads lower-cased, one that names no option reads as the first, and a save of anything else is refused. The shell reads the width with the sidebar switches through useLayoutSettings (sidebarSections.ts moved to layoutSettings.ts), so a save or a return to the tab changes it without a reload, and NotePage draws it as data-note-width. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013rPDLf6kv5c7ndNho6mCJR
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.
Summary
Settings → Layout (section 02, renamed from Sidebar) gains Note width: Default, Wide or Full, stored as
HATCHDOOR_NOTE_WIDTH.The Help manual draws outside
.note-page-layout, so it stays at Default.Evidence
Before: the note column was always 608px (38rem), whatever the screen.
After: a live pass against
just dev-startpicked each width in Settings and measured.note-contentwith no page reload. Light and dark gave the same numbers (px, 1440 / 2560):New tests:
.envreads lower-cased or falls back todefault, while an invalid save is refused.just checkpassed in full mode;palette.pypasses.Merge Danger
Door: two-way
The default is
default, so no install changes until someone picks Wide or Full. Removing the setting later leaves a harmless unknown key insettings.json.Blast Radius: note-layout
The only width rule that moves is
.note-page-layout's. Wide tables and code blocks keep scrolling sideways. The Settings section is now titled Layout, and the manual, the changelog and.env.exampleare updated to match.Closes #698
🤖 Generated with Claude Code
https://claude.ai/code/session_013rPDLf6kv5c7ndNho6mCJR