Files
fusion/packages/dashboard/app/components/ViewHeader.css
gsxdsm 125c5f5744 feat(dashboard): TodoView nav-stack in narrow dock; taller scrollable import preview; shared ViewHeader
- TodoView collapses to a single-panel navigation stack (list -> items with Back) via container query when narrow (right dock); wide two-panel layout unchanged.
- Embedded Import Tasks body scrolls vertically so the preview can be much taller (stacked layout gives the preview natural height; wide layout keeps internal scroll).
- Add a shared ViewHeader component (icon + CC-style title + wrapping actions) for consistent main-view headers.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-22 03:34:15 -07:00

43 lines
1.0 KiB
CSS

/*
FNXC:Navigation 2026-06-22-01:00:
Shared main-content view header, modeled after Command Center (.cc-header / .cc-title). Provides the standard --space-lg side/top padding and --space-md bottom gap, an icon + 1.125rem title, and an optional right-aligned actions cluster that wraps below the title on narrow widths so the two never overlap.
*/
.view-header {
display: flex;
flex-shrink: 0;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: var(--space-sm) var(--space-md);
padding: var(--space-lg) var(--space-lg) var(--space-md);
}
.view-header__title {
display: flex;
align-items: center;
gap: var(--space-sm);
min-width: 0;
margin: 0;
font-size: 1.125rem;
font-weight: 600;
color: var(--text);
}
.view-header__title svg {
flex-shrink: 0;
}
.view-header__title span {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.view-header__actions {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: var(--space-sm);
}