Move a note in one press, and stop Draw inventing a page
Moving lived under a right-click, behind a submenu: two steps before the list of places appeared at all, and on a phone a long press followed by a flyout. There is a button on the row now, and it opens one screen with the chapters of this notebook and the other notebooks together, marking where the note already is. The spare sheet in Draw mode was drawn as solid paper, so pressing Draw on a one-page note made a second page appear from nowhere while the count still said "of 1". It exists for a good reason — pages otherwise come only from how far the writing runs, so drawing on page two would mean writing two pages first — but it should look like the offer it is. Dashed outline, half opacity, and it says what it is for. It counts once something is on it. And the two buttons above the list did not match: the one I added last round was larger and bolder than the one it sat beside, and the older one's target was nineteen pixels tall, which a finger misses. Both are one shape now. A separator's label matches a chapter's name in size for the same reason — two type treatments in one list is noise, and the difference was not saying anything. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9d5ac1db27
commit
632ea5dcd9
7 files changed
+329
-29
No files matched your search
@@ -799,25 +799,55 @@ export function NoteEditor({
|
||||
something instead of floating in the middle of an empty pane.
|
||||
Behind the text and deaf to the pointer: it is what is written
|
||||
on, not part of what is written. */}
|
||||
{Array.from({ length: canvasPages }, (_, i) => (
|
||||
<div
|
||||
key={i}
|
||||
aria-hidden
|
||||
data-page-sheet={i + 1}
|
||||
style={{
|
||||
position: "absolute",
|
||||
left: 0,
|
||||
right: 0,
|
||||
top: i * pitch,
|
||||
height: stageSize.h,
|
||||
pointerEvents: "none",
|
||||
background: T.bg,
|
||||
border: isMobileViewport ? "none" : `1px solid ${T.border}`,
|
||||
borderRadius: isMobileViewport ? 0 : 4,
|
||||
boxShadow: isMobileViewport ? "none" : "0 2px 10px rgba(0,0,0,0.22)",
|
||||
}}
|
||||
/>
|
||||
))}
|
||||
{Array.from({ length: canvasPages }, (_, i) => {
|
||||
/* The last sheet in Draw mode is the spare one, not a page.
|
||||
Drawn as an outline rather than as paper: it appeared as a full
|
||||
second page the moment Draw was pressed, while the count still
|
||||
said "of 1" — which reads as the app inventing a page. It is an
|
||||
offer, and should look like one until something is on it. */
|
||||
const spare = mode === "draw" && i + 1 > pages.count;
|
||||
return (
|
||||
<div
|
||||
key={i}
|
||||
aria-hidden
|
||||
data-page-sheet={i + 1}
|
||||
data-spare-page={spare ? "yes" : undefined}
|
||||
style={{
|
||||
position: "absolute",
|
||||
left: 0,
|
||||
right: 0,
|
||||
top: i * pitch,
|
||||
height: stageSize.h,
|
||||
pointerEvents: "none",
|
||||
background: spare ? "transparent" : T.bg,
|
||||
border: isMobileViewport && !spare ? "none" : `1px dashed ${T.border}`,
|
||||
borderStyle: spare ? "dashed" : "solid",
|
||||
borderWidth: isMobileViewport && !spare ? 0 : 1,
|
||||
borderColor: T.border,
|
||||
borderRadius: isMobileViewport && !spare ? 0 : 4,
|
||||
boxShadow: isMobileViewport || spare ? "none" : "0 2px 10px rgba(0,0,0,0.22)",
|
||||
opacity: spare ? 0.5 : 1,
|
||||
}}
|
||||
>
|
||||
{spare && (
|
||||
<div
|
||||
style={{
|
||||
position: "absolute",
|
||||
top: 12,
|
||||
left: 0,
|
||||
right: 0,
|
||||
textAlign: "center",
|
||||
fontSize: 11,
|
||||
letterSpacing: 0.5,
|
||||
color: T.faint,
|
||||
}}
|
||||
>
|
||||
Draw here to add a page
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
<div
|
||||
style={{
|
||||
position: "relative",
|
||||
|
||||
Reference in new issue
Block a user