From 558c15f2c9809bf1417f3fa163190aa4eecb2ee1 Mon Sep 17 00:00:00 2001 From: marc Date: Tue, 11 Aug 2026 18:34:50 +0200 Subject: [PATCH] Revert "Give the writing a page to sit on, so the empty half means something" This reverts commit 7910179f2923c7c1451db21368c43f9314c021ed. --- frontend/src/features/notes/NoteEditor.jsx | 80 ++++++++-------------- 1 file changed, 28 insertions(+), 52 deletions(-) diff --git a/frontend/src/features/notes/NoteEditor.jsx b/frontend/src/features/notes/NoteEditor.jsx index 09be154..eb24bbd 100644 --- a/frontend/src/features/notes/NoteEditor.jsx +++ b/frontend/src/features/notes/NoteEditor.jsx @@ -100,10 +100,6 @@ 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] ); @@ -502,7 +498,11 @@ export function NoteEditor({ * width a property of the window, which is what it always looked like. */ flex: 1, minWidth: 0, - background: isMobileViewport ? T.pageBg : T.desk, + background: isMobileViewport + ? T.bg + : dark + ? "linear-gradient(180deg,#0f141b 0%,#0d1117 60%)" + : "linear-gradient(180deg,#f8fafd 0%,#eef3f8 70%)", }} > {/* Main toolbar */} @@ -716,65 +716,41 @@ 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. */}
- {/* 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) => ( + {/* 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" && (
- - Page {i + 2} - -
- ))} - + /> + )}