feat(studio): rebuild both side panels around one head, one row and one order

The rail lists its sections in the order a book is made: Pages, Content,
Layouts, Elements and Travel, then Theme and Layers set apart below a rule.
Stickers are a tab of Elements beside the icons instead of a rail section of
their own, and Elements has six tabs (text, shapes, lines, frames with the
grids, icons, stickers). The quotation mark moved to the text styles, the
outline rectangle to the basic shapes and the plain rule to the lines. The rail
and every tab row are tab lists the arrow keys walk through, and a long name
wraps instead of being cut. The icon and sticker searches say in the field how
many match, which the sticker library's own head used to.

Every panel on both sides opens on the same head, and every labelled control
uses one row that moves the control under its label when the two do not fit,
so no label sits in a fixed column any more. Number fields, chips, sliders,
tab labels, theme names and travel cards wrap the same way, a country beside
a stop wraps under itself, and an upload cell holds its words to two lines
with the whole label in its tooltip. The heads, shelves and groups are real
headings, so a screen reader can walk the panels by them.

The inspector shows every kind in one order: what the element is and says,
its position and size, its look, its effects, then Arrange. Align and the
stacking buttons are one Arrange group with a button that opens the page in
Layers; its rows sit under their labels, each in two sets that move to a
second line whole. Rarely used groups start folded and open on an element
that already uses them (a turned element, a map held at a zoom, a summary set
in another face), and every group mounts afresh for the next selection. A
sticker's duplicate angle and opacity are gone in favour of the shared
position group, which now has the turn buttons for every kind. With several
elements selected it keeps their angle, opacity and turn, and the mirror when
all of them are stickers, and leaves the frame's numbers to one element. A
photo's fill page and fill spread sit under its crop. With nothing selected
the inspector shows the page background, the book's theme with the way to the
Theme panel, and the page numbers.

Seventeen translation keys nothing has used since before the rebuild (the old
inspector title, the empty spread note, the summary and country list names,
the roads buttons and others) are gone from every language. The broad key
template the old panels used had counted them as reached; the format names,
the empty photo grid messages and the map source hints are now named where the
key check can read them.

Also fixed on the way: the travel stops list shared its class with the
gradient stops and was laid out as sixteen pixel handles; the alignment
buttons were named in raw English; the map's print resolution note joined its
two halves with a dash.
This commit is contained in:
Maurice
2026-10-24 01:47:53 +00:00
parent e8b071aecd
commit bdf5767a5f
185 changed files with 5457 additions and 2889 deletions
+119 -167
View File
@@ -310,44 +310,51 @@
min-height: 0;
z-index: 1;
}
.trek-dash .st-pages { border-inline-end: 1px solid var(--glass-border); }
.trek-dash .st-inspector { border-inline-start: 1px solid var(--glass-border); }
.trek-dash .st-panel-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 14px 14px 10px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.14em;
color: var(--ink-3);
/* One height with actions or without, so the heads of both sides line up. */
min-height: 50px;
padding-block: 10px 8px;
padding-inline: 14px 12px;
flex: none;
}
.trek-dash .st-panel-scroll { overflow-y: auto; overflow-x: hidden; padding: 0 12px 14px; min-height: 0; }
/* ----------------- inspector: the head ----------------- */
/* ----------------- panel head: the title ----------------- */
/*
* The panel's own title, and the three things you do to what it is about.
*
* It is set larger and darker than a section label on purpose: those were the
* Every panel's own title, on both sides, and the things you do to what it is
* about. Set larger and darker than a section label on purpose: those were the
* same small capitals in the same grey, so a panel with eight groups had nine
* headings that all looked alike and no top.
*/
.trek-dash .st-inspector-head { padding: 12px 12px 10px; text-transform: none; letter-spacing: 0; }
.trek-dash .st-inspector-head .st-what {
.trek-dash .st-panel-head .st-what {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 7px;
gap: 4px 7px;
flex: 1 1 auto;
min-width: 0;
font-size: 13px;
font-size: calc(13px * var(--fs-scale-subtitle, 1));
font-weight: 650;
line-height: 1.3;
letter-spacing: -0.01em;
color: var(--ink);
}
.trek-dash .st-inspector-head .st-what em {
.trek-dash .st-what-label { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.trek-dash .st-head-meta {
flex: 0 1 auto;
min-width: 0;
overflow-wrap: anywhere;
text-align: end;
font-size: calc(11px * var(--fs-scale-caption, 1));
color: var(--ink-3);
font-variant-numeric: tabular-nums;
}
.trek-dash .st-panel-head .st-what em {
display: inline-flex;
align-items: center;
justify-content: center;
@@ -356,7 +363,7 @@
padding: 0 5px;
border-radius: 999px;
background: color-mix(in oklch, var(--ink) 8%, transparent);
font-size: 10.5px;
font-size: calc(10.5px * var(--fs-scale-caption, 1));
font-style: normal;
font-weight: 600;
font-variant-numeric: tabular-nums;
@@ -499,6 +506,8 @@
flex-direction: column;
gap: 2px;
padding: 8px 6px;
overflow-x: hidden;
overflow-y: auto;
background: var(--glass-bg);
border-inline-end: 1px solid var(--glass-border);
backdrop-filter: var(--glass-blur);
@@ -506,8 +515,10 @@
z-index: 1;
}
.trek-dash .st-rail-btn {
flex: none;
width: 52px;
height: 52px;
min-height: 52px;
padding: 6px 2px;
display: flex;
flex-direction: column;
align-items: center;
@@ -517,71 +528,28 @@
color: var(--ink-3);
transition: background .16s, color .16s;
}
/* Two lines at most, broken inside a word that is longer than the rail is wide
("Путешествие", "Tərtibatlar"); the button's title carries the whole name. */
.trek-dash .st-rail-btn span {
font-size: 9px;
font-weight: 600;
max-width: 100%;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 100%;
font-size: calc(9.5px * var(--fs-scale-caption, 1));
font-weight: 600;
line-height: 1.15;
text-align: center;
overflow-wrap: anywhere;
hyphens: auto;
}
.trek-dash .st-rail-btn:focus { outline: none; }
.trek-dash .st-rail-btn:focus-visible { box-shadow: 0 0 0 2px var(--accent-soft), 0 0 0 3px var(--accent); }
.trek-dash .st-rail-btn:hover { background: color-mix(in oklch, var(--ink) 6%, transparent); color: var(--ink-2); }
.trek-dash .st-rail-btn.is-on { background: var(--accent-soft); color: var(--accent-ink); }
.trek-dash .st-side { border-inline-end: 1px solid var(--glass-border); }
.trek-dash .st-tabs {
display: flex;
gap: 3px;
padding: 0 12px 10px;
flex: none;
}
.trek-dash .st-tabs button {
flex: 1;
/* A flex item will not shrink below its own content width unless told to, so
`flex: 1` alone does not give equal thirds — the tab with the longest word
stays wide and squeezes the others. This is what makes them actually equal. */
min-width: 0;
height: 28px;
border-radius: 8px;
font-size: 11.5px;
font-weight: 600;
color: var(--ink-3);
background: color-mix(in oklch, var(--ink) 4%, transparent);
transition: background .16s, color .16s;
/* A label that still will not fit is cut rather than wrapped: a wrapped tab
grows taller than the row and knocks the whole strip out of line. */
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* The count is a footnote to the label, not part of it — a badge keeps it from
competing with the word for the same weight. */
.trek-dash .st-tabs button em {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 16px;
height: 15px;
margin-inline-start: 5px;
padding: 0 4px;
border-radius: 999px;
background: color-mix(in oklch, var(--ink) 10%, transparent);
color: var(--ink-3);
font-style: normal;
font-size: 9.5px;
font-weight: 600;
font-variant-numeric: tabular-nums;
line-height: 1;
vertical-align: middle;
}
.trek-dash .st-tabs button.is-on em {
background: color-mix(in oklch, var(--accent-text, #fff) 24%, transparent);
color: var(--accent-text, #fff);
}
.trek-dash .st-tabs button:hover { color: var(--ink-2); }
.trek-dash .st-tabs button.is-on { background: var(--accent); color: var(--accent-text, #fff); }
/* ----------------- search ----------------- */
.trek-dash .st-search {
display: flex;
@@ -680,8 +648,9 @@
.trek-dash .st-tile {
display: flex;
align-items: center;
height: 44px;
padding: 0 13px;
gap: 8px;
min-height: 44px;
padding: 6px 13px;
border-radius: 10px;
text-align: start;
color: var(--ink);
@@ -943,6 +912,7 @@
justify-content: space-between;
gap: 8px;
width: 100%;
text-align: start;
padding: 13px 2px 11px;
color: var(--ink-3);
transition: color .14s;
@@ -950,7 +920,10 @@
.trek-dash .st-section-head:hover { color: var(--ink); }
.trek-dash .st-section-head:hover .st-section-label { color: inherit; }
.trek-dash .st-section-label {
font-size: 10.5px;
min-width: 0;
overflow-wrap: anywhere;
hyphens: auto;
font-size: calc(10.5px * var(--fs-scale-caption, 1));
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.11em;
@@ -989,21 +962,29 @@
/* ----------------- inspector: one labelled line ----------------- */
/*
* The label carries the *role* — accent, text, icon — which is the thing three
* The label carries the *role* (accent, text, icon), which is the thing three
* identical swatch rows under three identical headings could never say.
*
* Label and control share the line while both fit and the control wraps under
* the label when they do not, so no label is cut and no control is squeezed:
* the label has no column of its own to overflow, only a common minimum that
* starts the controls of short labels at one edge.
*/
.trek-dash .st-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.trek-dash .st-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.trek-dash .st-line + .st-line { margin-top: 8px; }
.trek-dash .st-line.is-wide { display: block; }
.trek-dash .st-line-label {
flex: none;
width: 68px; overflow-wrap: anywhere; hyphens: auto; /* "Ausrichtung" fits, a longer word breaks */
font-size: 11px;
flex: 0 0 auto;
min-width: min(4.75em, 100%);
max-width: 100%;
overflow-wrap: anywhere;
hyphens: auto;
font-size: calc(11px * var(--fs-scale-caption, 1));
color: var(--ink-3);
line-height: 1.25;
}
.trek-dash .st-line.is-wide .st-line-label { display: block; margin-bottom: 7px; width: auto; }
.trek-dash .st-line-body { flex: 1; min-width: 0; }
.trek-dash .st-line.is-wide .st-line-label { display: block; margin-bottom: 7px; }
.trek-dash .st-line-body { flex: 1 1 10rem; min-width: 0; }
/* ----------------- inspector: a switch on its own line ----------------- */
.trek-dash .st-switch {
@@ -1017,9 +998,19 @@
.trek-dash .st-switch-label { font-size: 12px; color: var(--ink-2); min-width: 0; }
/* ----------------- inspector: a number with its unit ----------------- */
.trek-dash .st-num { display: flex; align-items: center; gap: 8px; min-width: 0; }
.trek-dash .st-num-label { flex: none; font-size: 11px; color: var(--ink-3); min-width: 13px; }
.trek-dash .st-num-box { position: relative; flex: 1; min-width: 0; display: flex; }
/* The field keeps room for a number; a label too long to sit beside it goes above it. */
.trek-dash .st-num { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.trek-dash .st-num-label {
flex: 0 1 auto;
min-width: 13px;
max-width: 100%;
overflow-wrap: anywhere;
hyphens: auto;
font-size: calc(11px * var(--fs-scale-caption, 1));
line-height: 1.25;
color: var(--ink-3);
}
.trek-dash .st-num-box { position: relative; flex: 1 0 4.5rem; min-width: 4.5rem; display: flex; }
.trek-dash .st-num-box .st-input { padding-inline-end: 26px; }
/* The unit sits inside the field, so the number and what it is in read as one
value rather than as a field with a word next to it. */
@@ -1037,13 +1028,17 @@
.trek-dash .st-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trek-dash .st-row { display: flex; flex-wrap: wrap; gap: 5px; }
.trek-dash .st-field { display: flex; align-items: center; gap: 7px; min-width: 0; }
.trek-dash .st-field { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; min-width: 0; }
.trek-dash .st-field > span {
font-size: 11px;
color: var(--ink-3);
flex: none;
flex: 0 1 auto;
min-width: 13px;
max-width: 100%;
overflow-wrap: anywhere;
font-size: calc(11px * var(--fs-scale-caption, 1));
line-height: 1.25;
color: var(--ink-3);
}
.trek-dash .st-field > .st-input { flex: 1 0 4.5rem; min-width: 4.5rem; }
.trek-dash .st-field input[type="range"] { flex: 1; min-width: 0; accent-color: var(--accent); }
.trek-dash .st-input {
@@ -1068,24 +1063,28 @@
resize: vertical;
}
/* A label wraps inside its chip rather than running past the panel's edge. */
.trek-dash .st-chip {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 5px;
height: 27px;
padding: 0 10px;
min-height: 27px;
max-width: 100%;
padding: 4px 10px;
border-radius: 999px;
background: color-mix(in oklch, var(--ink) 5%, transparent);
color: var(--ink-2);
font-size: 11.5px;
font-size: calc(11.5px * var(--fs-scale-caption, 1));
font-weight: 500;
white-space: nowrap;
line-height: 1.25;
text-align: center;
overflow-wrap: anywhere;
transition: background .16s, color .16s;
}
.trek-dash .st-chip:hover { background: color-mix(in oklch, var(--ink) 10%, transparent); color: var(--ink); }
.trek-dash .st-chip.is-on { background: var(--accent); color: var(--accent-text, #fff); }
.trek-dash .st-chip.is-icon { width: 27px; padding: 0; }
.trek-dash .st-chip.is-icon { width: 27px; height: 27px; padding: 0; flex: none; }
/*
* Choose-several, which is a different question from choose-one and has to
* look like it: an outline that fills only with the tick, so a set of seven
@@ -1392,17 +1391,19 @@
background: #ffffff; /* theme-lint-disable — the preview stands on paper, not on the panel */
box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--ink) 7%, transparent);
}
/* Two lines at most, the whole name in the card's title: a card keeps its height in the grid. */
.trek-dash .st-travel-card-label {
display: block;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
padding: 0 2px 1px;
font-size: 10.5px;
font-size: calc(10.5px * var(--fs-scale-caption, 1));
line-height: 1.3;
font-weight: 500;
color: var(--ink-3);
text-align: start;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
overflow-wrap: anywhere;
}
.trek-dash .st-travel-card:hover .st-travel-card-label { color: var(--ink-2); }
@@ -1486,7 +1487,11 @@
justify-content: center;
gap: 6px;
width: 100%;
height: 34px;
min-height: 34px;
padding-block: 6px;
line-height: 1.25;
text-align: center;
overflow-wrap: anywhere;
margin-top: 10px;
border-radius: 10px;
border: 1px dashed var(--line-2);
@@ -1798,61 +1803,6 @@
background: var(--line-2);
}
/* stops */
/*
* The route as rows, in the Travel panel.
*
* Not tiles: a stop is not something to place, it is the input every map and
* figure below reads. One line per stop, the day first and the switch last, so
* the eye runs down the right-hand edge to find the one that is off. A
* left-out row is dimmed as a whole rather than struck through: it is still a
* day of the journal, just not a leg of the route.
*
* A row is a row rather than a card: fourteen bordered boxes down a 236px
* panel is a wall, and what the list needs is to be read quickly, not to have
* each of its entries framed. The separators do the same work for a fifth of
* the height.
*/
.trek-dash .st-stops {
display: flex;
flex-direction: column;
margin: 2px 0 0;
padding: 0;
list-style: none;
}
.trek-dash .st-stop {
display: flex;
align-items: center;
gap: 6px;
min-width: 0;
padding: 4px 0;
border-bottom: 1px solid var(--line);
transition: opacity .16s;
}
.trek-dash .st-stop:last-child { border-bottom: 0; }
.trek-dash .st-stop.is-off { opacity: .55; }
.trek-dash .st-stop-label {
flex: 1 1 auto;
min-width: 0;
font-size: 12px;
font-weight: 600;
letter-spacing: -0.01em;
color: var(--ink);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* The day keeps its width, as on the entry cards; the country gives way. */
.trek-dash .st-stop > .st-badge { flex: none; }
.trek-dash .st-stop > .st-badge.is-quiet { flex: 0 1 auto; }
/* The switch, as a mark: a square the size of the badges beside it. The
padding is reset because `is-pick` sets its own further down the file. */
.trek-dash .st-stop > .st-chip.is-icon { flex: none; width: 22px; height: 22px; padding: 0; }
.trek-dash .st-stop > .st-chip:not(.is-on) { color: var(--ink-3); }
/* The same chip as a plain label: a viewer's, or a stop with no entry to switch. */
.trek-dash .st-stop > span.st-chip { pointer-events: none; }
/* content filter + upload */
/*
* Which pictures the browser shows, and the way pictures get in (#2064).
@@ -1899,12 +1849,16 @@
.trek-dash .st-filter-chip > button + button { padding-block: 0; padding-inline: 3px 8px; margin-inline-start: -5px; }
.trek-dash .st-filter-chip > button:hover { background: color-mix(in oklch, var(--ink) 7%, transparent); }
.trek-dash .st-filter-chip.is-on > button:hover { background: color-mix(in oklch, var(--accent-text, #fff) 14%, transparent); }
/* Two lines of an entry's name at most; the menu below it shows them whole. */
.trek-dash .st-filter-name {
flex: 1;
min-width: 0;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
overflow-wrap: anywhere;
line-height: 1.25;
text-align: start;
}
/* The count, set like the one in the tabs: a footnote, not part of the name. */
@@ -1925,9 +1879,7 @@
.trek-dash .st-filter-row .st-menu-item { padding: 7px 10px; gap: 8px; }
.trek-dash .st-filter-row .st-menu-name,
.trek-dash .st-filter-row .st-menu-dim {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
overflow-wrap: anywhere;
}
.trek-dash .st-filter-count { flex: none; }
@@ -1957,9 +1909,9 @@
transition: border-color .16s, color .16s, background .16s, transform .14s ease-out, box-shadow .14s;
}
.trek-dash .st-photo-cell.is-upload span {
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 100%; overflow: hidden;
/* Two lines that break inside a long word; the button's title holds the whole of it. */
overflow-wrap: anywhere; hyphens: auto;
font-variant-numeric: tabular-nums;
}
.trek-dash .st-photo-cell.is-upload:hover:not(:disabled) {