Skip to content

AI media harness for planning, generating, and editing locally

TypeScript

Keep the queue flyout on screen; pane floors for narrow views

Bittibc73991d1600
diff --git a/src/styles/generator.css b/src/styles/generator.css
index 69a74c4..ab5b1bc 100644
--- a/src/styles/generator.css
+++ b/src/styles/generator.css
@@ -17,7 +17,9 @@
height: 100%;
min-height: 0;
display: grid;
- grid-template-columns: minmax(0, 1fr) auto var(--pane-generator-inspector);
+ /* Floors on both sides: with the agent pane open in a 900px window the view
+ is ~540px wide, and a fixed inspector squeezed the scene list to nothing. */
+ grid-template-columns: minmax(280px, 1fr) auto minmax(260px, var(--pane-generator-inspector));
background: var(--layer);
}
@@ -31,6 +33,7 @@
.generator-main {
min-width: 0;
min-height: 0;
+ container: generator-main / inline-size;
display: flex;
flex-direction: column;
}
@@ -89,6 +92,7 @@
========================================================================== */
.generator-runtime {
+ flex: none;
min-width: 0;
display: inline-flex;
align-items: center;
@@ -237,6 +241,7 @@
.scene-rule__summary {
flex: 1 1 auto;
min-width: 0;
+ overflow: hidden;
min-height: var(--control-sm);
display: flex;
align-items: center;
@@ -1081,3 +1086,25 @@
color: var(--accent-bright);
font-weight: var(--weight-medium);
}
+
+/* --- A narrow board ---------------------------------------------------------
+ The agent pane open in a small window leaves the board ~280px. The command
+ bar drops its labels (the tooltips still name the commands), the template
+ picker narrows, and the scene rows keep the title by dropping the caption
+ and the status chip — the status glyph beside the title still carries it. */
+@container generator-main (max-width: 440px) {
+ /* Visually hidden, not display:none — the label is the button's
+ accessible name. */
+ .generator-command .ui-cmd--labelled .ui-cmd__label {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ overflow: hidden;
+ clip-path: inset(50%);
+ white-space: nowrap;
+ }
+ .generator-command .ui-cmd--labelled { padding-inline: var(--space-2); }
+ .generator-template { min-width: 96px; }
+ .scene-rule__caption,
+ .scene-rule__badge { display: none; }
+}
diff --git a/src/styles/image-editor.css b/src/styles/image-editor.css
index 574360a..dd1018c 100644
--- a/src/styles/image-editor.css
+++ b/src/styles/image-editor.css
@@ -6,7 +6,7 @@
========================================================================== */
.project-content--editor { padding: 0; overflow: hidden; }
-.image-editor { --pane-image-tree: 240px; --pane-image-inspector: 300px; display: grid; grid-template-columns: var(--pane-image-tree) auto minmax(0, 1fr) auto var(--pane-image-inspector); height: 100%; min-height: 0; background: var(--layer); }
+.image-editor { --pane-image-tree: 240px; --pane-image-inspector: 300px; display: grid; grid-template-columns: minmax(140px, var(--pane-image-tree)) auto minmax(160px, 1fr) auto minmax(220px, var(--pane-image-inspector)); height: 100%; min-height: 0; background: var(--layer); }
.image-tree, .image-inspector { min-width: 0; min-height: 0; overflow: auto; background: var(--panel); }
.image-tree { display: flex; flex-direction: column; }
.image-tree > .ui-pane-header, .image-inspector > .ui-pane-header { flex-shrink: 0; border-bottom: 1px solid var(--line); }
diff --git a/src/styles/references.css b/src/styles/references.css
index 38e3f98..439eb48 100644
--- a/src/styles/references.css
+++ b/src/styles/references.css
@@ -16,13 +16,15 @@
height: 100%;
min-height: 0;
display: grid;
- grid-template-columns: minmax(0, 1fr) auto var(--pane-references-inspector);
+ /* Floors on both sides so a narrow view (agent pane open) keeps the list. */
+ grid-template-columns: minmax(240px, 1fr) auto minmax(260px, var(--pane-references-inspector));
background: var(--layer);
}
.references-main {
min-width: 0;
min-height: 0;
+ container: references-main / inline-size;
display: flex;
flex-direction: column;
}
@@ -858,3 +860,19 @@
.reference-preset-grid > p {
color: var(--text-muted);
}
+
+/* A narrow list (agent pane open in a small window): the command bar keeps
+ its icons and drops the labels; the tooltips still name each command. */
+@container references-main (max-width: 400px) {
+ /* Visually hidden, not display:none — the label is the button's
+ accessible name. */
+ .references-command .ui-cmd--labelled .ui-cmd__label {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ overflow: hidden;
+ clip-path: inset(50%);
+ white-space: nowrap;
+ }
+ .references-command .ui-cmd--labelled { padding-inline: var(--space-2); }
+}
diff --git a/src/styles/work-queue.css b/src/styles/work-queue.css
index 6d1c75e..95f5b27 100644
--- a/src/styles/work-queue.css
+++ b/src/styles/work-queue.css
@@ -11,7 +11,13 @@
button and its InfoBadge.
========================================================================== */
+/* The width is also set here, not only through Flyout's `width` prop: the
+ flyout measures itself BEFORE that inline width lands, so without it the
+ placement was computed for a narrower panel and the right edge ran off the
+ window. */
.work-queue.ui-flyout {
+ width: 360px;
+ max-width: calc(100vw - 16px);
display: flex;
flex-direction: column;
max-height: min(560px, calc(100vh - 64px));