AI media harness for planning, generating, and editing locally
TypeScript
Fix stale Splitter example and CommandBar label comment
Bitti7beedbe41000
diff --git a/src/components/ui/Chrome.tsx b/src/components/ui/Chrome.tsxindex 8d5e11d..b8fa159 100644--- a/src/components/ui/Chrome.tsx+++ b/src/components/ui/Chrome.tsx@@ -69,9 +69,9 @@ export const CommandBarButton = forwardRef(function CommandBarButton(aria-label={withText ? undefined : label}aria-pressed={pressed}aria-keyshortcuts={ariaKeyShortcuts(shortcut)}- /* Always: a labelled button loses its text when the bar is narrow- (the stylesheet hides .ui-cmd__label), and then the tooltip is all- that names it. */+ /* Always: a page may visually hide .ui-cmd__label when its bar gets+ narrow (generator.css and references.css do, in a container query),+ and then the tooltip is all that names it on screen. */data-tooltip={tooltip ?? label}data-tooltip-shortcut={shortcut ? formatShortcut(shortcut) : undefined}{...rest}diff --git a/src/components/ui/Splitter.tsx b/src/components/ui/Splitter.tsxindex 9cf5d68..8663c55 100644--- a/src/components/ui/Splitter.tsx+++ b/src/components/ui/Splitter.tsx@@ -5,13 +5,14 @@move it 8px (Shift: 32px), Home/End jump to the limits, double-clickresets. Sizes persist in localStorage under "slopus.pane.<key>".- const inspector = usePaneSize("generator.inspector", 340, { min: 260, max: 560 });- <div className="generator" style={inspector.style}> // sets --pane-generator-inspector+ // GeneratorView: a side pane at --pane-side-default (340px), 280-560px+ const inspectorPane = usePaneSize("generator.inspector", 340, { min: 280, max: 560 });+ <div className="generator-view" style={inspectorPane.style}> // sets --pane-generator-inspector<main />- <Splitter {...inspector.splitterProps} reverse aria-label="Resize inspector" />- <aside />+ <Splitter {...inspectorPane.splitterProps} reverse aria-label="Resize inspector" aria-controls="generator-inspector" />+ <aside id="generator-inspector" /></div>- .generator { grid-template-columns: 1fr auto var(--pane-generator-inspector); }+ .generator-view { grid-template-columns: minmax(280px, 1fr) auto minmax(280px, var(--pane-generator-inspector)); }`reverse` is for a pane on the right (or bottom) of the splitter: draggingtowards it makes it smaller. Orientation "vertical" (default) is a vertical