AI media harness for planning, generating, and editing locally
TypeScript
Center and cap inspector action widths
Bitti62a55f17350d
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.mdindex 3f4d0fb..7fc4283 100644--- a/RELEASE_NOTES.md+++ b/RELEASE_NOTES.md@@ -4,6 +4,8 @@ This alpha update adds Prompt video scenes, agent image drafts, Sol attention an## What's new+- **Centered inspector actions.** Generate, Debug prompt, Export and other panel actions keep a compact default width and shrink to fit narrower panels.+- **Inspector sliders and editable effect values.** Numeric settings such as Steps, sigma shifts, CFG, placement and clip transforms now pair draggable sliders with compact number fields. Timeline and generation effect values can also be typed directly, with defined ranges, reset support and synchronized controls. Seed remains a plain number field.- **Agent frame inspection.** Agents can view timeline frames, generated scenes and shots, stored scene takes, image/video references and specific generated images. Motions are rendered at the requested time, both directly and in timeline layers. Captures respect scene offsets and reference trims, without changing playback or selection.diff --git a/src/components/workspace/ExtendSettings.tsx b/src/components/workspace/ExtendSettings.tsxindex 22c78ef..a360b4b 100644--- a/src/components/workspace/ExtendSettings.tsx+++ b/src/components/workspace/ExtendSettings.tsx@@ -40,7 +40,7 @@ export function ExtendSettings({ config, source, options, onChange, onResolutiononChange({ ...options, bounds: field === "width" || field === "height" ? alignExtendBounds(bounds, field === "width" ? "e" : "s") : { ...bounds, [field]: Math.round(value) } });}} /></PropRow>)}- <button type="button" className="secondary-button" disabled={busy} onClick={() => onChange({ ...options, bounds: initialExtendBounds(source.width!, source.height!) })}>Reset box</button>+ <button type="button" className="secondary-button inspector-action" disabled={busy} onClick={() => onChange({ ...options, bounds: initialExtendBounds(source.width!, source.height!) })}>Reset box</button><PropRow label="Steps" htmlFor="extend-steps"><SliderNumberInput id="extend-steps" aria-label="Steps" {...GENERATION_STEPS_RANGE} required disabled={busy}value={options.steps} onCommit={(steps) => onChange({ ...options, steps })} /></PropRow><PropRow label="Seed" htmlFor="extend-seed" tooltip="Use -1 for a random seed."><input id="extend-seed" className="text-field" type="number" min="-1" max={Number.MAX_SAFE_INTEGER} step="1" required disabled={busy}diff --git a/src/components/workspace/MotionInspector.tsx b/src/components/workspace/MotionInspector.tsxindex 5f4c41a..9e7d63e 100644--- a/src/components/workspace/MotionInspector.tsx+++ b/src/components/workspace/MotionInspector.tsx@@ -21,7 +21,7 @@ export function MotionInspector({ motion, selectedId, onSelect, onChange, disabl<PropSection title="Motion" persistKey="motion.document"><PropRow label="Duration"><SliderNumberInput aria-label="Motion duration" minimum={0.1} maximum={600} step={0.1} suffix="s" disabled={disabled}value={motion.duration} onCommit={(duration) => change({ ...motion, duration })} /></PropRow>- <button className="secondary-button" disabled={rendering || !onRenderReference} onClick={onRenderReference}>{rendering ? "Rendering reference…" : "Render as reference video"}</button>+ <button className="secondary-button inspector-action" disabled={rendering || !onRenderReference} onClick={onRenderReference}>{rendering ? "Rendering reference…" : "Render as reference video"}</button></PropSection><PropSection title="Elements" persistKey="motion.elements">{!motion.nodes.length && <p className="settings-description">This Motion is empty. Ask the agent to add elements and animation.</p>}@@ -40,7 +40,7 @@ export function MotionInspector({ motion, selectedId, onSelect, onChange, disablonChange={(e) => change({ ...motion, overrides: { ...motion.overrides, [node.id]: { ...edit, fill: e.target.value } } })} /></PropRow>{node.kind === "text" && <PropRow label="Text"><input className="text-field" aria-label="Element text" disabled={disabled} value={edit.text ?? node.text}onChange={(e) => change({ ...motion, overrides: { ...motion.overrides, [node.id]: { ...edit, text: e.target.value } } })} /></PropRow>}- <button className="secondary-button" disabled={disabled} onClick={() => change({ ...motion, overrides: { ...motion.overrides, [node.id]: motionOverrideSchema.parse({}) } })}>Reset element adjustments</button>+ <button className="secondary-button inspector-action" disabled={disabled} onClick={() => change({ ...motion, overrides: { ...motion.overrides, [node.id]: motionOverrideSchema.parse({}) } })}>Reset element adjustments</button></>}</PropSection><PropSection title="Parameters" persistKey="motion.parameters">@@ -56,7 +56,7 @@ export function MotionInspector({ motion, selectedId, onSelect, onChange, disabl</PropSection><PropSection title="JavaScript" persistKey="motion.source"><textarea className="text-field motion-source" aria-label="Motion JavaScript source" spellCheck={false} disabled={disabled} value={source} onChange={(e) => setSource(e.target.value)} />- <button className="secondary-button" disabled={disabled || source === motion.source} onClick={() => change({ ...motion, source })}>Apply source</button>+ <button className="secondary-button inspector-action" disabled={disabled || source === motion.source} onClick={() => change({ ...motion, source })}>Apply source</button>{error && <p role="alert">{error}</p>}</PropSection></>;diff --git a/src/components/workspace/ReferenceAudio.tsx b/src/components/workspace/ReferenceAudio.tsxindex 66e788e..58df296 100644--- a/src/components/workspace/ReferenceAudio.tsx+++ b/src/components/workspace/ReferenceAudio.tsx@@ -72,7 +72,7 @@ export function ReferenceAudio({ folderPath, reference, onChange }: { folderPath<CommittedNumberInput id={`${reference.id}-audio-length`} className="text-field" aria-label="Sound length in seconds" step={0.1} disabled={!trim}value={Number(length.toFixed(2))} minimum={MIN_REFERENCE_SECONDS} maximum={MAX_REFERENCE_SECONDS} onCommit={(value) => change("duration", value)} /></PropRow>- <button type="button" className="secondary-button" disabled={!trim} onClick={() => void playSelection()}>+ <button type="button" className="secondary-button inspector-action" disabled={!trim} onClick={() => void playSelection()}>{previewing ? <><Pause14 aria-hidden="true" /> Stop</> : <><Play14 aria-hidden="true" /> Play selection</>}</button>{error && <p role="alert">{error}</p>}diff --git a/src/components/workspace/ReferenceVideo.tsx b/src/components/workspace/ReferenceVideo.tsxindex 65a2423..31dbfb6 100644--- a/src/components/workspace/ReferenceVideo.tsx+++ b/src/components/workspace/ReferenceVideo.tsx@@ -19,7 +19,7 @@ export function ReferenceVideo(props: ReferenceVideoProps) {{!open && (props.reference.video?.mode === "frames"? <div className="reference-trim__summary"><strong>Frames</strong><span>{props.reference.video.frames?.length ?? 0} frames selected</span></div>: <div className="reference-trim__summary"><strong>{referenceTime(start)} – {referenceTime(start + length)}</strong><span>{Number(length.toFixed(2))} s selected</span></div>)}- <button type="button" className="secondary-button" onClick={() => setOpen(true)}><Cut16 /> Edit video clip</button>+ <button type="button" className="secondary-button inspector-action" onClick={() => setOpen(true)}><Cut16 /> Edit video clip</button>{open && <ReferenceVideoDialog {...props} onClose={() => setOpen(false)} />}</>;}diff --git a/src/components/workspace/ReferencesView.tsx b/src/components/workspace/ReferencesView.tsxindex 0c623d0..4691ea8 100644--- a/src/components/workspace/ReferencesView.tsx+++ b/src/components/workspace/ReferencesView.tsx@@ -607,14 +607,14 @@ export function ReferencesView({ config, folderPath, onChange, onRegenerateIcon,<section className="reference-video" aria-label="Video reference"><ReferenceVideo key={`${selected.id}:${selected.sourcePath ?? selected.relativePath}`} folderPath={folderPath} reference={selected}onChange={(video) => update(selected.id, { video })} />- <button className="secondary-button" onClick={() => update(selected.id, { kind: "text", sourcePath: null, relativePath: null, video: undefined, images: referenceImages(selected) })}><Delete16 aria-hidden="true" /> Remove video</button>+ <button className="secondary-button inspector-action" onClick={() => update(selected.id, { kind: "text", sourcePath: null, relativePath: null, video: undefined, images: referenceImages(selected) })}><Delete16 aria-hidden="true" /> Remove video</button></section></PropSection>}{selected.kind === "audio" && <PropSection title="Sound clip" persistKey="references.audio" tooltip="Needs a Ref2VA generator and an image or video reference in the same scene. Cite it in a shot to place it."><section className="reference-video" aria-label="Sound reference"><ReferenceAudio key={`${selected.id}:${selected.sourcePath ?? selected.relativePath}`} folderPath={folderPath} reference={selected}onChange={(audio) => update(selected.id, { audio })} />- <button className="secondary-button" onClick={() => update(selected.id, { kind: "text", sourcePath: null, relativePath: null, audio: undefined })}><Delete16 aria-hidden="true" /> Remove sound</button>+ <button className="secondary-button inspector-action" onClick={() => update(selected.id, { kind: "text", sourcePath: null, relativePath: null, audio: undefined })}><Delete16 aria-hidden="true" /> Remove sound</button></section></PropSection>}{/* The picture at a readable size, where the chip is only a glance:diff --git a/src/styles/export.css b/src/styles/export.cssindex 0105b84..b46bab0 100644--- a/src/styles/export.css+++ b/src/styles/export.css@@ -412,13 +412,14 @@ img.export-image {.export-settings__actions {display: flex;- justify-content: flex-end;+ justify-content: center;gap: var(--space-2);}.export-settings__actions .primary-button,.export-settings__actions .secondary-button {- min-width: 96px;+ flex: 0 1 var(--inspector-action-width);+ margin-inline: 0;}.export-progress {diff --git a/src/styles/generator.css b/src/styles/generator.cssindex 0c17a01..235f005 100644--- a/src/styles/generator.css+++ b/src/styles/generator.css@@ -886,10 +886,6 @@gap: var(--space-2);}-.debug-prompt__toggle {- width: 100%;-}-.debug-prompt-dialog__scene {margin: 0 0 var(--space-3);color: var(--text-secondary);diff --git a/src/styles/timeline.css b/src/styles/timeline.cssindex 076ed85..132181a 100644--- a/src/styles/timeline.css+++ b/src/styles/timeline.css@@ -892,7 +892,6 @@.clip-effect__note--error { color: var(--danger); }.clip-effects__add.secondary-button {- width: 100%;gap: var(--space-2);margin-top: var(--space-1);}diff --git a/src/styles/tokens.css b/src/styles/tokens.cssindex c86552a..da490dc 100644--- a/src/styles/tokens.css+++ b/src/styles/tokens.css@@ -149,6 +149,7 @@--item-header: 48px; /* the selected-item header */--section-row: 28px; /* PropSection header, property rows */--prop-label: 104px; /* the one label column width */+ --inspector-action-width: 220px; /* centered panel actions, shrink in narrow panes */--pane-side-default: 340px; /* a side pane's default width */--titlebar-height: 48px; /* the window caption / app header row */diff --git a/src/styles/ui.css b/src/styles/ui.cssindex 3bbad39..380ea6a 100644--- a/src/styles/ui.css+++ b/src/styles/ui.css@@ -774,6 +774,27 @@column-gap: var(--space-2);}+/* Main panel actions keep their size as the inspector grows. Split Generate+ buttons size as one unit, leaving the options arrow at its normal width. */+.inspector-action,+.inspector-actions > button,+.inspector-actions > .image-generation-controls,+.image-template-settings__footer > button,+.export-settings__actions > button,+.debug-prompt__toggle,+.clip-effects__add.secondary-button {+ display: flex;+ width: min(var(--inspector-action-width), 100%);+ min-width: 0;+ max-width: 100%;+ margin-inline: auto;+ align-self: center;+}++.inspector-action {+ white-space: normal;+}+.ui-prop-row__label {min-width: 0;overflow: hidden;