Undo, and the toolbar in three groups
Undo takes back one's own latest mark, by the button, Ctrl+Z or two quick taps of the eraser; the toolbar's drawing tools, the page and view, and the session stand in three groups that do not move when the tool changes; the buttons are a little smaller.
This commit is contained in:
1 parent
a139361e8d
commit
4e3a281d65
11 files changed
+602
-35
No files matched your search
+29
-5
@@ -102,13 +102,35 @@ h2 {
|
||||
background: var(--panel);
|
||||
}
|
||||
|
||||
/* Three groups (Andy, 2026-10-11): the drawing tools with their settings
|
||||
and Undo on the left; the page and the view in the middle, centred
|
||||
between the other two; the session's buttons flush right. The
|
||||
drawing group keeps the width of its widest state (main.js sets its
|
||||
min-width by measuring), so that the middle group stays put when the
|
||||
tool changes. */
|
||||
.drawing, .settings { display: flex; align-items: center; gap: 0.5rem 0.55rem; }
|
||||
/* Twice the gap before Eraser, Hide and Undo, so that with the pen the
|
||||
widest line and the Eraser read as two groups (Andy, 2026-10-11). */
|
||||
.drawing .after_settings { margin-left: 0.55rem; }
|
||||
.toolbar .page_view { margin-left: auto; margin-right: auto; }
|
||||
|
||||
/* When the window is too narrow for one row, the tools are centred
|
||||
instead of standing at the two ends (Andy, 2026-10-09; main.js sets
|
||||
the class by measuring). */
|
||||
.toolbar.wrapped { justify-content: center; }
|
||||
.toolbar.wrapped .page_view { margin-left: 0; margin-right: 0; }
|
||||
.toolbar.wrapped .toolbar_right { margin-left: 0; justify-content: center; }
|
||||
|
||||
.toolbar .notebook_pick { width: 9rem; }
|
||||
/* 9rem wide until 2026-10-11: room for Undo. The buttons' height, else
|
||||
this select, 36 px tall by its own padding, sets the row's height and
|
||||
the buttons' trimming gains nothing (measured 2026-10-11). */
|
||||
.toolbar .notebook_pick, .toolbar #session_notebook_name {
|
||||
width: 7.2rem;
|
||||
height: calc(2rem - 2px);
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.toolbar .toggle { display: flex; align-items: center; gap: 0.3rem; cursor: pointer; }
|
||||
.toolbar .toggle input { margin: 0; }
|
||||
|
||||
@@ -125,14 +147,16 @@ h2 {
|
||||
|
||||
/* The same height as the buttons, so the toolbar does not change height;
|
||||
narrow enough that a host's toolbar fits a 1920-pixel screen in one
|
||||
row (measured 2026-10-09: about 1750 pixels with these settings). */
|
||||
row (measured 2026-10-09: about 1750 pixels with these settings).
|
||||
Since 2026-10-11 two pixels less in height and on each side than
|
||||
2rem and 0.6rem, for room (Andy, in two steps of a pixel). */
|
||||
.toolbar button:not(.swatch), #text_size, #text_font {
|
||||
box-sizing: border-box;
|
||||
height: 2rem;
|
||||
height: calc(2rem - 2px);
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.toolbar button:not(.swatch) { padding-left: 0.6rem; padding-right: 0.6rem; }
|
||||
.toolbar button:not(.swatch) { padding-left: calc(0.6rem - 2px); padding-right: calc(0.6rem - 2px); }
|
||||
|
||||
#text_size, #text_font {
|
||||
margin: 0;
|
||||
@@ -196,7 +220,7 @@ h2 {
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 0.5rem 0.55rem;
|
||||
margin-left: auto;
|
||||
margin-left: 0; /* auto until 2026-10-11; the middle group's margins push it right now. */
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user