Keep the gap blank, and give the writing more of the page
Two things wrong with the paper. "Start writing..." was printed at the foot of every page that had a break after it. The placeholder extension styles `[contenteditable]:empty::before`, and the spacer holding a gap open is exactly that: empty, and not editable. It inherited a placeholder meant for an empty note. And the column was too narrow for the sheet it now sits on — about 73 characters, which left 117px of blank paper down each edge and made the writing look lost. Widened to about 80, a little short of where the eye stops reliably finding the start of the next line, which leaves roughly 8% of the sheet as margin: a document's margin rather than a picture frame. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
816cc8e68b
commit
d82e72d358
5 files changed
+46
-85
No files matched your search
@@ -211,6 +211,17 @@ try {
|
||||
(await p.locator(".ne-page-spacer").count()) > 0,
|
||||
"which takes holding the gap open inside the text itself"
|
||||
);
|
||||
/* The placeholder extension styles `[contenteditable]:empty::before`, and a
|
||||
* spacer is exactly that. "Start writing..." was printed at the foot of every
|
||||
* page that had a break after it. */
|
||||
check(
|
||||
await p.evaluate(() =>
|
||||
[...document.querySelectorAll(".ne-page-spacer")].every(
|
||||
(el) => getComputedStyle(el, "::before").content === "none"
|
||||
)
|
||||
),
|
||||
"and the gap stays blank — no placeholder printed at the foot of the page"
|
||||
);
|
||||
|
||||
/* The note is still one document — pages are drawn, not stored. */
|
||||
const stored = (await api(p, "GET", "/notes")).body[0];
|
||||
|
||||
Reference in new issue
Block a user