Repository navigation
Narrow layouts: a note rail and an overlay sidebar for tablets and phones - #19
Merged
Merged
Conversation
…ones Under 960px of reading area the 280px margin column becomes a 44px rail of note markers, so fit width gives the page the room. Markers open the note's card over the page edge; notes can be written, edited and closed by touch. The overlay sidebar starts closed and closes after a jump or a tap on the page. Fit width may go down to 25% so a letter page fits a phone. Part of #18. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 6cfe0214-e2a8-4a94-99bd-74b28c84b315
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 6cfe0214-e2a8-4a94-99bd-74b28c84b315
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.
Part 1 of 4 for #18. Drive sync now gets libraries onto tablets and phones, but the reader was laid out for desktop only.
What changes
.reader__main), the 280px margin column becomes a 44px rail. Each note gets a marker at its anchor. The viewer reads--margin-column-widthfor its layout math, so fit width gives the page the room, and the reading position is kept exactly across the switch.N, tapping empty rail, and jumps from the sidebar, book map or review open the card on their own.Esc(back to its marker), with Tab, or with a click or tap elsewhere. Scrolling does not close it.MIN_SCALEgoes from 0.4 to 0.25 so fit width can fit a letter-size page on a phone.DESIGN.md§5.2/§5.3 andROADMAP.mdare updated.Desktop at ≥ 960px is unchanged.
Tests
railLayoutunit tests for how markers stack.e2e/narrow.spec.tswith 7 tests at tablet and phone sizes:--repeat-each=4).bun run checkis green.mainalso had one random failure, so the suite appears load-sensitive and I don't think this branch causes it.Next (#18)