- Right dock: Files first/default; usage/activity-log/git-manager render inline; embedded Git Manager uses a container query (compact horizontal tab strip in the dock, full two-pane in the wide pop-out); Files inline viewer + pop-out. - Import Tasks layout fits its container (stacked when narrow, two-pane when wide); Import Tasks uses the GitHub mark. - Planning embeds full-area and works on mobile; planning shows the board WorkflowSwitcher. - Automations screen uses theme color tokens. - Workflow selector matches the project selector height/font. - Left sidebar: uniform spacing across the primary/secondary boundary. Adds a changeset for @runfusion/fusion (minor). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
244 lines
5.7 KiB
CSS
244 lines
5.7 KiB
CSS
.workflow-switcher {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
min-width: 0;
|
|
color: var(--text-muted);
|
|
font-size: calc(var(--space-sm) + var(--space-xs) * 0.75);
|
|
}
|
|
|
|
.workflow-switcher-label {
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
/*
|
|
FNXC:WorkflowSwitcher 2026-06-22-00:00:
|
|
The workflow selector trigger must match the project selector trigger styling: transparent background, --radius-md border, muted text that brightens on hover with a --card-hover fill and --text-dim border, and content-driven width (no fixed min-width). Only the max-width clamp is kept so long workflow names stay bounded.
|
|
*/
|
|
.workflow-switcher-trigger {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-xs);
|
|
min-width: 0;
|
|
max-width: calc(var(--space-xl) * 12);
|
|
padding: calc(var(--space-xs) + var(--space-xs) / 2) calc(var(--space-xs) + var(--space-xs) / 2);
|
|
background: transparent;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-muted);
|
|
font: inherit;
|
|
/*
|
|
FNXC:WorkflowSwitcher 2026-06-22-00:10:
|
|
Match the project selector trigger height and font size: the project label uses 13px / line-height 1, so set the same here (the parent .workflow-switcher font-size is smaller). With identical padding + font-size + line-height the two triggers render the same height.
|
|
*/
|
|
font-size: 13px;
|
|
line-height: 1;
|
|
text-align: left;
|
|
transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
|
|
}
|
|
|
|
.workflow-switcher-trigger:hover,
|
|
.workflow-switcher-trigger[aria-expanded="true"] {
|
|
background: var(--card-hover);
|
|
color: var(--text);
|
|
border-color: var(--text-dim);
|
|
}
|
|
|
|
.workflow-switcher-trigger:focus-visible {
|
|
outline: none;
|
|
box-shadow: var(--focus-ring);
|
|
}
|
|
|
|
.workflow-switcher-trigger-main {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
min-width: 0;
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.workflow-switcher-current-name,
|
|
.workflow-switcher-option-name {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.workflow-switcher-current-name {
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.workflow-switcher-chevron {
|
|
flex: 0 0 auto;
|
|
color: var(--text-muted);
|
|
transition: transform var(--transition-fast);
|
|
}
|
|
|
|
.workflow-switcher-trigger[aria-expanded="true"] .workflow-switcher-chevron {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.workflow-switcher-counts {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: calc(var(--space-xs) / 2);
|
|
flex: 0 0 auto;
|
|
font-variant-numeric: tabular-nums;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.workflow-switcher-count {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: calc(var(--space-md) + var(--space-xs));
|
|
padding: 0 var(--space-xs);
|
|
border-radius: var(--radius-pill);
|
|
border: 1px solid var(--border);
|
|
background: var(--surface);
|
|
color: var(--text);
|
|
line-height: calc(var(--space-md) / var(--space-sm));
|
|
}
|
|
|
|
/*
|
|
FNXC:WorkflowSwitcher 2026-06-20-00:00:
|
|
The switcher's inline Todo, In Progress, and Done count badges intentionally mirror the board column color tokens so each count reads as the same color as the column it summarizes.
|
|
*/
|
|
.workflow-switcher-count--todo {
|
|
color: var(--todo);
|
|
}
|
|
|
|
.workflow-switcher-count--in-progress {
|
|
color: var(--in-progress);
|
|
}
|
|
|
|
.workflow-switcher-count--done {
|
|
color: var(--done);
|
|
}
|
|
|
|
.workflow-switcher-count-separator {
|
|
color: var(--text-dim);
|
|
}
|
|
|
|
.workflow-switcher-menu {
|
|
position: fixed;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow);
|
|
z-index: 1200;
|
|
}
|
|
|
|
.workflow-switcher-options {
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
padding: var(--space-xs) 0;
|
|
}
|
|
|
|
.workflow-switcher-option-row {
|
|
display: flex;
|
|
align-items: stretch;
|
|
gap: var(--space-xs);
|
|
padding: 0 var(--space-xs);
|
|
background: transparent;
|
|
}
|
|
|
|
.workflow-switcher-option-row:hover,
|
|
.workflow-switcher-option-row--highlighted {
|
|
background: var(--card-hover);
|
|
}
|
|
|
|
.workflow-switcher-option-row--selected {
|
|
background: color-mix(in srgb, var(--todo) 15%, transparent);
|
|
}
|
|
|
|
.workflow-switcher-option-row--selected:hover,
|
|
.workflow-switcher-option-row--selected.workflow-switcher-option-row--highlighted {
|
|
background: color-mix(in srgb, var(--todo) 25%, transparent);
|
|
}
|
|
|
|
.workflow-switcher-option {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-sm);
|
|
min-width: 0;
|
|
flex: 1 1 auto;
|
|
padding: var(--space-sm) var(--space-md);
|
|
border: 0;
|
|
background: transparent;
|
|
color: var(--text);
|
|
font: inherit;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.workflow-switcher-option:focus-visible,
|
|
.workflow-switcher-edit:focus-visible,
|
|
.workflow-switcher-create:focus-visible {
|
|
outline: none;
|
|
box-shadow: var(--focus-ring);
|
|
}
|
|
|
|
.workflow-switcher-edit {
|
|
flex: 0 0 auto;
|
|
align-self: center;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.workflow-switcher-edit:hover {
|
|
color: var(--text);
|
|
}
|
|
|
|
.workflow-switcher-option-name {
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.workflow-switcher-counts--option {
|
|
margin-left: auto;
|
|
}
|
|
|
|
.workflow-switcher-footer {
|
|
flex: 0 0 auto;
|
|
padding: var(--space-xs);
|
|
border-top: 1px solid var(--border);
|
|
background: var(--surface);
|
|
}
|
|
|
|
.workflow-switcher-create {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--space-sm);
|
|
width: 100%;
|
|
min-height: calc(var(--space-lg) + var(--space-sm));
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.workflow-switcher {
|
|
flex: 1 1 auto;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.workflow-switcher-label {
|
|
align-self: center;
|
|
}
|
|
|
|
.workflow-switcher-trigger {
|
|
min-width: 0;
|
|
max-width: none;
|
|
width: 100%;
|
|
}
|
|
|
|
.workflow-switcher-menu {
|
|
max-width: calc(100vw - var(--space-xl));
|
|
}
|
|
}
|