AI media harness for planning, generating, and editing locally
TypeScript
Honour hidden, fit the timeline and title bar into narrow windows
Bitti7dc963d9c485
diff --git a/src/styles/base.css b/src/styles/base.cssindex 19b187a..7fc42c9 100644--- a/src/styles/base.css+++ b/src/styles/base.css@@ -36,6 +36,14 @@ body {user-select: none;}+/* `hidden` means hidden. The UA rule is a plain `display: none` that any+ component rule setting `display` outranks, and the app keeps several panes+ mounted-but-hidden (the agent pane, the screen behind Settings) — without+ this, a closed agent pane still took the bottom of the window. */+[hidden] {+ display: none !important;+}+/* Where text is written, it is text: selecting, double-clicking a word anddragging through a value all keep working. */input,diff --git a/src/styles/image-editor.css b/src/styles/image-editor.cssindex 8b7432c..574360a 100644--- a/src/styles/image-editor.css+++ b/src/styles/image-editor.css@@ -52,9 +52,11 @@.image-tool:active { background: var(--fill-subtle-pressed); }.image-tool--on, .image-tool--on:hover { border-color: var(--accent-line); color: var(--accent-on-soft); background: var(--accent-soft); }.image-tool > span { display: grid; }-.image-viewport { position: relative; flex: 1; min-height: 0; overflow: clip; container-type: size; user-select: none; }+/* Fit leaves a 24px margin round the frame, so its edge reads as the canvas+ edge instead of merging into the pane borders. */+.image-viewport { position: relative; flex: 1; min-height: 0; overflow: clip; container-type: size; user-select: none; background: var(--layer-alt); }.image-viewport.panning, .image-viewport.panning * { cursor: grabbing; }-.image-frame { position: absolute; left: 50%; top: 50%; transform: translate(calc(-50% + var(--image-pan-x)), calc(-50% + var(--image-pan-y))); width: calc(min(100cqw, 100cqh * var(--image-ratio)) * var(--image-zoom)); aspect-ratio: var(--image-ratio); background: var(--panel); box-shadow: 0 0 0 1px var(--line-solid); }+.image-frame { position: absolute; left: 50%; top: 50%; transform: translate(calc(-50% + var(--image-pan-x)), calc(-50% + var(--image-pan-y))); width: calc(min(100cqw - 48px, (100cqh - 48px) * var(--image-ratio)) * var(--image-zoom)); aspect-ratio: var(--image-ratio); background: var(--panel); box-shadow: 0 0 0 1px var(--line-solid); }.image-frame > img, .image-frame > .reference-image { position: absolute; width: 100%; height: 100%; object-fit: contain; inset: 0; }.image-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2); text-align: center; padding: var(--space-4); color: var(--text-muted); }.image-empty strong { color: var(--text-primary); font-size: var(--text-base); font-weight: var(--weight-semibold); }diff --git a/src/styles/timeline.css b/src/styles/timeline.cssindex ad8df93..9228526 100644--- a/src/styles/timeline.css+++ b/src/styles/timeline.css@@ -42,11 +42,14 @@.edit-panels {min-height: 0;display: grid;- grid-template-columns: var(--pane-timeline-sources) auto minmax(0, 1fr) auto var(--pane-timeline-inspector);+ /* The side panes shrink toward a floor before the row overflows: with the+ agent pane open in a 900px window the content area is ~540px, less than+ the two stored pane widths together. */+ grid-template-columns: minmax(160px, var(--pane-timeline-sources)) auto minmax(160px, 1fr) auto minmax(220px, var(--pane-timeline-inspector));}-.edit-panels--no-sources { grid-template-columns: minmax(0, 1fr) auto var(--pane-timeline-inspector); }-.edit-panels--no-inspector { grid-template-columns: var(--pane-timeline-sources) auto minmax(0, 1fr); }+.edit-panels--no-sources { grid-template-columns: minmax(160px, 1fr) auto minmax(220px, var(--pane-timeline-inspector)); }+.edit-panels--no-inspector { grid-template-columns: minmax(160px, var(--pane-timeline-sources)) auto minmax(160px, 1fr); }.edit-panels--no-sources.edit-panels--no-inspector { grid-template-columns: minmax(0, 1fr); }.scene-panel,@@ -164,9 +167,18 @@object-fit: cover;}-/* Flat badges: a dark plate, 2px corners, no glass. */-.scene-card__thumb i,-.scene-card__thumb em {+/* The 88×50 thumbnail has no room for the shot's own status caption+ ("Rendering 68%", "Waiting to render", the ETA) — the text column beside it+ already says the same thing. Keep the glyph and the progress line only. */+.scene-card__thumb .shot-thumb em,+.scene-card__thumb .shot-thumb small {+ display: none;+}++/* Flat badges: a dark plate, 2px corners, no glass. Direct children only, so+ the rule never reaches into the shot thumbnail's own markup. */+.scene-card__thumb > i,+.scene-card__thumb > em {position: absolute;z-index: 2;padding: 0 var(--space-1);@@ -179,12 +191,12 @@font-variant-numeric: tabular-nums;}-.scene-card__thumb i { left: 2px; top: 2px; }-.scene-card__thumb em { right: 2px; bottom: 2px; }+.scene-card__thumb > i { left: 2px; top: 2px; }+.scene-card__thumb > em { right: 2px; bottom: 2px; }.scene-card > span:last-child,.scene-card b,-.scene-card small {+.scene-card > span:last-child small {display: block;min-width: 0;}@@ -199,7 +211,7 @@line-height: var(--leading-snug);}-.scene-card small {+.scene-card > span:last-child small {overflow: hidden;color: var(--text-muted);font-size: var(--text-xs);@@ -933,7 +945,9 @@/* --- Timeline toolbar ------------------------------------------------------ */.pro-timeline {+ min-width: 0;min-height: 0;+ container: pro-timeline / inline-size;display: grid;grid-template-rows: var(--toolbar-height) minmax(0, 1fr);background: var(--panel);@@ -941,12 +955,14 @@}/* Lead | transport | tools. Two equal rails keep the transport on the row's- centre whatever the rails hold. */+ centre while there is room; the tools rail never goes below its content, so+ in a narrow pane (agent open, 900px window) the transport slides left+ instead of the tools spilling over it. The lead rail gives up width first. */.timeline-toolbar {height: var(--toolbar-height);min-width: 0;display: grid;- grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);+ grid-template-columns: minmax(0, 1fr) auto minmax(max-content, 1fr);align-items: center;gap: var(--space-3);padding: 0 var(--space-2);@@ -956,6 +972,7 @@.timeline-toolbar__lead {min-width: 0;+ overflow: hidden;display: flex;align-items: center;gap: var(--space-2);@@ -1090,6 +1107,22 @@ button.transport-time:hover { background: var(--fill-subtle-hover); }flex: none;}+/* A narrow timeline (agent pane open in a 900px window): the tools drop to+ their icons — the tooltip still names each one — and the lead keeps only+ the playhead clock, so nothing in the row overlaps. */+@container pro-timeline (max-width: 760px) {+ .timeline-toolbar { gap: var(--space-1); }+ .timeline-toolbar h2,+ .transport-format { display: none; }+ .timeline-tools button:not(.timeline-tools__icon) {+ width: 28px;+ gap: 0;+ padding: 0;+ font-size: 0;+ }+ .timeline-zoom { width: 64px; }+}+/* --- Track grid ------------------------------------------------------------ */.timeline-body {diff --git a/src/styles/workspace.css b/src/styles/workspace.cssindex 8b2e824..1fc4e47 100644--- a/src/styles/workspace.css+++ b/src/styles/workspace.css@@ -160,4 +160,27 @@.project-views .ui-selector-bar__item {padding: 0 var(--space-2);}++ /* At the 900px window minimum the four views need ~320px, which the row+ only has once the app glyph goes, the middle loses its inset and the+ title-bar commands drop their labels (their tooltips still name them). */+ .project-titlebar .titlebar__icon {+ display: none;+ }++ .project-titlebar .titlebar__middle {+ padding: 0 var(--space-1);+ }++ .project-views {+ gap: 0;+ }++ .project-commands > button {+ width: var(--control-md);+ gap: 0;+ padding: 0;+ font-size: 0;+ justify-content: center;+ }}