AI media harness for planning, generating, and editing locally
TypeScript
/* ============================================================================
work-queue.css — the work queue flyout (WorkQueuePanel.tsx).
It hangs from the queue button in the title bar on the shared .ui-flyout
surface (acrylic, 8px corners, flyout shadow; ui.css). No scrim and no
window dimming: it is a light-dismiss popup, not a dialog. Inside: a 14px
semibold header with a link-style "Clear finished", then one flat list —
rows separated by hairlines, a 16px state glyph, a title, a caption and,
while the work runs, the 3px ProgressBar. The fixed launcher pill that used
to float in the bottom-right corner is gone; the title bar carries the
button and its InfoBadge.
========================================================================== */
/* The 360px width comes from Flyout's `width` prop, which the flyout now
places itself by (it used to measure before the width landed). */
.work-queue.ui-flyout {
max-width: calc(100vw - 16px);
display: flex;
flex-direction: column;
max-height: min(560px, calc(100vh - 64px));
padding: 0;
overflow: hidden;
}
.work-queue__header {
display: flex;
align-items: center;
gap: var(--space-2);
flex: none;
min-height: 44px;
padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
}
.work-queue__header h2 {
margin: 0;
margin-right: auto;
font-size: var(--text-base);
font-weight: var(--weight-semibold);
line-height: var(--leading-normal);
}
/* A hyperlink-looking button: accent text, no fill, no hand cursor (it is a
command, not a navigation). */
.work-queue__link {
justify-self: start;
min-height: var(--control-sm);
padding: 0 var(--space-2);
border: 0;
border-radius: var(--radius-sm);
background: transparent;
color: var(--accent-bright);
font-size: var(--text-base);
transition: var(--transition-control);
}
.work-queue__link:hover {
background: var(--fill-subtle-hover);
}
.work-queue__link:active {
background: var(--fill-subtle-pressed);
}
.work-queue__list {
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
overscroll-behavior: contain;
padding-bottom: var(--space-2);
}
.work-queue__list ul {
margin: 0;
padding: 0;
list-style: none;
}
.work-queue__group {
margin: 0;
padding: var(--space-3) var(--space-4) var(--space-1);
color: var(--text-secondary);
font-size: var(--text-xs);
font-weight: var(--weight-regular);
line-height: 16px;
}
.work-queue__row {
position: relative;
display: flex;
align-items: flex-start;
gap: var(--space-3);
padding: var(--space-3) var(--space-2) var(--space-3) var(--space-4);
border-top: 1px solid var(--stroke-card);
}
.work-queue__open {
position: absolute;
inset: 0;
width: 100%;
border: 0;
border-radius: var(--radius-sm);
background: transparent;
cursor: pointer;
}
.work-queue__open:hover { background: var(--fill-subtle-hover); }
.work-queue__open:active { background: var(--fill-subtle-pressed); }
.work-queue__open:focus-visible { outline-offset: -2px; }
/* Let the row-wide navigation button receive clicks through its labels while
keeping Cancel and Retry independent keyboard and pointer targets. */
.work-queue__row--navigable > :not(.work-queue__open) { pointer-events: none; }
.work-queue__row--navigable button:not(.work-queue__open) {
position: relative;
pointer-events: auto;
}
.work-queue__list section:first-child > ul > .work-queue__row:first-child {
border-top-color: transparent;
}
.work-queue__state {
display: grid;
place-items: center;
flex: none;
width: 16px;
height: 20px;
color: var(--text-secondary);
}
.work-queue__state--completed { color: var(--success); }
.work-queue__state--failed { color: var(--danger); }
.work-queue__state--generating,
.work-queue__state--encoding,
.work-queue__state--preparing { color: var(--accent); }
.work-queue__text {
display: grid;
flex: 1 1 auto;
gap: 2px;
min-width: 0;
}
.work-queue__title,
.work-queue__caption {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.work-queue__title {
color: var(--text-primary);
font-size: var(--text-base);
line-height: var(--leading-normal);
}
.work-queue__caption {
color: var(--text-secondary);
font-size: var(--text-xs);
line-height: 16px;
font-variant-numeric: tabular-nums;
}
.work-queue__progress {
margin-top: var(--space-1);
}
.work-queue__error {
color: var(--danger);
font-size: var(--text-xs);
line-height: 16px;
overflow-wrap: anywhere;
}
.work-queue__cancel {
flex: none;
}
.work-queue__empty {
display: grid;
justify-items: center;
gap: var(--space-1);
padding: var(--space-6) var(--space-4);
color: var(--text-secondary);
text-align: center;
}
.work-queue__empty strong {
margin-top: var(--space-2);
color: var(--text-primary);
font-weight: var(--weight-semibold);
}
.work-queue__empty span {
font-size: var(--text-xs);
}