AI media harness for planning, generating, and editing locally
TypeScript
/* ============================================================================
workspace.css — the project window (ProjectWorkspace.tsx): the title bar's
project half, the InfoBars under it, the active view, and the agent docked
on the right behind a Splitter.
The 56px topbar that sat under the OS caption is gone: the window is
frameless and the title bar IS the header (i-frame-1). The segmented pill
of view buttons is a SelectorBar of tabs in it (i-frame-6), and the agent
is a pane rather than a bottom row that had to leave 256px free for the
floating corner buttons.
--bg is transparent under Mica, so every surface below the title bar that
needs a plate paints --layer.
========================================================================== */
.project-shell {
display: flex;
flex-direction: column;
flex: 1 1 auto;
min-width: 0;
min-height: 0;
height: 100%;
overflow: hidden;
color: var(--text-secondary);
}
/* --- Title bar -------------------------------------------------------------- */
/* The project name is a button that opens Project settings, and looks like
one: a control fill with a hairline, the name in semibold and a 12px
chevron saying there is more behind it. Caption-sized, like any window
title; the name ellipsises, the chevron never does. */
.project-title {
display: inline-flex;
align-items: center;
gap: var(--space-1);
max-width: 280px;
min-width: 0;
height: var(--control-md);
padding: 0 var(--space-2);
border: 0;
border-radius: var(--radius-sm);
background: var(--fill-control);
box-shadow: inset 0 0 0 1px var(--stroke-control);
color: inherit;
font: inherit;
font-weight: var(--weight-semibold);
white-space: nowrap;
transition: var(--transition-control);
}
.project-title__name {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
}
.project-title > svg {
flex: none;
color: var(--text-secondary);
}
.project-title:hover {
background: var(--fill-control-hover);
}
.project-title:active {
background: var(--fill-control-pressed);
}
.project-titlebar .titlebar__identity {
gap: var(--space-2);
}
.project-titlebar .titlebar__middle {
justify-content: center;
padding: 0 var(--space-3);
}
/* The views. Tabs, not links: arrow keys move between them, Ctrl+1…4 jump.
The pill alone is easy to miss at this height, so the selected one is also
semibold on a subtle control fill. Each name reserves its semibold width
(a hidden bold copy under it), so the row never shifts when the selection
moves. */
.project-views {
min-width: 0;
overflow: hidden;
}
.project-views .ui-selector-bar__item--selected {
background: var(--fill-control);
font-weight: var(--weight-semibold);
}
.project-views .ui-selector-bar__item--selected:hover:not(:disabled) {
background: var(--fill-control-hover);
}
.project-views__label {
display: inline-flex;
align-items: center;
gap: var(--space-2);
}
.project-views__name {
display: inline-grid;
}
.project-views__playing {
color: var(--accent-bright);
width: 16px;
height: 16px;
flex-shrink: 0;
}
.project-views__name::after {
content: attr(data-label);
height: 0;
overflow: hidden;
visibility: hidden;
font-weight: var(--weight-semibold);
}
.project-commands {
display: flex;
align-items: center;
gap: var(--space-2);
}
.project-commands > button {
flex: none;
}
/* --- InfoBars -------------------------------------------------------------------
Save and export failures, inline under the title bar at full width, where
the corner toasts used to be. */
.project-infobars {
display: grid;
gap: var(--space-1);
flex: none;
padding: 0 var(--space-2) var(--space-2);
}
/* --- Body: the view and the agent pane --------------------------------------- */
.project-body {
--pane-workspace-agent: 360px; /* usePaneSize sets the real width inline */
flex: 1 1 auto;
min-height: 0;
display: grid;
grid-template-columns: minmax(0, 1fr);
border-top: 1px solid var(--stroke-card);
background: var(--layer);
}
.project-body--agent {
grid-template-columns: minmax(0, 1fr) auto var(--pane-workspace-agent);
}
/* The chrome (title bar, agent pane) stays put while the active view scrolls.
Without this the timeline clips on windows shorter than ~920px instead of
giving the user a way to reach the rest of it. */
.project-content {
min-width: 0;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
}
.project-agent-pane {
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
overflow: hidden;
background: var(--layer);
}
.project-export {
display: grid;
grid-template-rows: auto minmax(0, 1fr);
height: 100%;
min-height: 0;
}
.project-export__types {
padding: var(--space-1) var(--space-3);
border-bottom: 1px solid var(--stroke-divider);
}
.project-agent-pane > * {
flex: 1 1 auto;
min-height: 0;
}
/* --- Status bar ------------------------------------------------------------------
One StatusBar along the window's foot on every view. The view portals its
own facts into the leading slot (display: contents, so they sit in the
strip's own gap rhythm); the sequence format and save state trail. Values
are the ink, labels the secondary text around them. */
.project-status__view {
display: contents;
}
.project-status b {
color: var(--text-primary);
font-weight: var(--weight-semibold);
}
.project-status__fact,
.project-status__format {
font-variant-numeric: tabular-nums;
}
.project-status__fact {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
}
.project-status__save {
display: inline-flex;
align-items: center;
gap: var(--space-1);
}
.project-status__save::before {
content: "";
width: 6px;
height: 6px;
border-radius: 50%;
background: currentColor;
}
.project-status__save--saved {
color: var(--success);
}
.project-status__save--unsaved {
color: var(--warning);
}
.project-status__save--saving::before {
opacity: 0.5;
}
/* --- Narrow windows ---------------------------------------------------------
The window minimum is 900px (tauri.conf.json). The project name gives up
width first, then the tab icons go, so the tabs, Save and the caption
buttons all stay reachable. */
@media (max-width: 1180px) {
.project-title {
max-width: 180px;
}
}
@media (max-width: 1040px) {
.project-title {
max-width: 120px;
}
.project-views .ui-selector-bar__icon {
display: none;
}
.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;
}
}