diff --git a/frontend/src/features/notes/NoteEditor.jsx b/frontend/src/features/notes/NoteEditor.jsx index eb24bbd..09be154 100644 --- a/frontend/src/features/notes/NoteEditor.jsx +++ b/frontend/src/features/notes/NoteEditor.jsx @@ -100,6 +100,10 @@ export function NoteEditor({ muted: dark ? "#8b949e" : "#656d76", active: dark ? "#388bfd" : "#0969da", faint: dark ? "#484f58" : "#afb8c1", + /* A shade apart from the desk it lies on — enough to read as a surface, + not so much that it glares in a dark room. */ + pageBg: dark ? "#131922" : "#ffffff", + desk: dark ? "#0b0f14" : "#e9ecef", }), [dark] ); @@ -498,11 +502,7 @@ export function NoteEditor({ * width a property of the window, which is what it always looked like. */ flex: 1, minWidth: 0, - background: isMobileViewport - ? T.bg - : dark - ? "linear-gradient(180deg,#0f141b 0%,#0d1117 60%)" - : "linear-gradient(180deg,#f8fafd 0%,#eef3f8 70%)", + background: isMobileViewport ? T.pageBg : T.desk, }} > {/* Main toolbar */} @@ -716,41 +716,65 @@ export function NoteEditor({ padding: isMobileViewport ? "10px 0 18px" : "18px 0 28px", }} > + {/* The page is a surface, always. + With the text capped at a readable measure and nothing behind it, + the right 40% of the pane was simply void. A page gives that space + a meaning — it is the margin — and it is what lets "page 2" show as + a page rather than as a line across an empty field. */}
- {/* A hairline where each page ends, so the count in the toolbar - corresponds to something you can see. Drawn behind the text and - deaf to the pointer — it marks the paper, it is not part of it. */} - {pages.count > 1 && mode === "text" && ( + {/* Where one page ends and the next begins. + A band rather than a hairline, with the new page's number set in + the margin — the count in the toolbar should correspond to + something that reads as a page, not to a line across a field. + The text flows on through: the note is one document, and a real + page break would mean laying the text out ourselves. */} + {Array.from({ length: Math.max(0, pages.count - 1) }, (_, i) => (
- )} + > + + Page {i + 2} + +
+ ))} +