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. */}