@justai/cuts 0.62.0 → 0.63.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/Toolbar.astro +14 -12
package/package.json
CHANGED
package/src/Toolbar.astro
CHANGED
|
@@ -22,7 +22,9 @@
|
|
|
22
22
|
// persona's, so it comes from the persona. Omit it and the bust stays — adopting this is each
|
|
23
23
|
// persona's own decision, taken when its mark exists, and nothing moves in the fleet without it.
|
|
24
24
|
// Note what a mark cannot do: an <img> ignores `currentColor`, so `.active`'s accent never reaches
|
|
25
|
-
// it.
|
|
25
|
+
// it. It is not replaced with anything: the title strip already closes on this cut and opens off
|
|
26
|
+
// it, and a mark is an identity rather than a UI state. Slot presence adds `.tb-mark`, which the
|
|
27
|
+
// sizing rule uses.
|
|
26
28
|
// • langPicker — needs the persona's own locale data (the list must NOT live in the shared package —
|
|
27
29
|
// it bit us twice; see @justai/ui/locale) → a slot the persona fills with its <LangPicker/>.
|
|
28
30
|
// • navExtra — optional extra nav item after Posts (e.g. the timers' fullscreen button) → slot.
|
|
@@ -67,8 +69,7 @@ const { sectionsLabel, profileLabel, kernelLabel, postsLabel, home = true, files
|
|
|
67
69
|
in the fleet moves on the day this ships.
|
|
68
70
|
|
|
69
71
|
`tb-mark` is set from slot PRESENCE, not from a prop somebody could forget to keep in step. It
|
|
70
|
-
exists
|
|
71
|
-
"you are here" would never reach it. The class moves that signal to opacity instead. */}
|
|
72
|
+
exists so the sizing rule can find the image; it deliberately does NOT restyle the mark. */}
|
|
72
73
|
<a
|
|
73
74
|
class:list={["tb-nav", { "tb-mark": Astro.slots.has("profileIcon") }]}
|
|
74
75
|
id="navProfile"
|
|
@@ -172,15 +173,16 @@ const { sectionsLabel, profileLabel, kernelLabel, postsLabel, home = true, files
|
|
|
172
173
|
.tb-nav:active { transform: scale(0.9); }
|
|
173
174
|
.tb-nav.active { color: var(--accent); }
|
|
174
175
|
|
|
175
|
-
/* A MARK
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
176
|
+
/* A MARK IS NOT DIMMED, AND THE PROFILE CUT DOES NOT NEED IT TO BE.
|
|
177
|
+
It shipped dimmed at rest for one version, on the reasoning that a mark cannot take `currentColor`
|
|
178
|
+
and so needed opacity to say "you are here". Both halves of that were true and the conclusion was
|
|
179
|
+
still wrong, because the state was already being said, louder: `titleFor` in @justai/core returns an
|
|
180
|
+
empty string for `profile`, so the title strip CLOSES on this cut and opens — 26px of layout, naming
|
|
181
|
+
where you are — the moment you leave it. Against that, tinting an icon adds nothing.
|
|
182
|
+
And the two are not the same kind of thing. The three stroke icons are generic glyphs whose colour IS
|
|
183
|
+
a UI state; a mark is an identity. A faded logo does not read as "not current", it reads as disabled.
|
|
184
|
+
So the mark stays itself. Press feedback is not lost: `.tb-nav:active`'s scale applies to it like any
|
|
185
|
+
other item. `.tb-mark` remains, because the sizing rule below still needs to know an image is here. */
|
|
184
186
|
/* The shell sizes the mark and says NOTHING about `display`, deliberately. Two files arrive for the two
|
|
185
187
|
themes — an SVG's internal `prefers-color-scheme` does not survive <img>, measured — and the persona
|
|
186
188
|
hides one with a media query. A `display: block` here would be two classes deep against the persona's
|