Goals, Research, and Stash Recovery now keep full-width layouts inside the project-content flex row. - Add flex growth, zero min-width, and full-width root sizing to Goals, Research, and Stash Recovery views. - Document the view-level flex sizing requirement with FNXC comments. - Add CSS contract tests for both bundled and base CSS fixtures. Files changed: packages/dashboard/app/components/GoalsView.css | 7 +++++++ packages/dashboard/app/components/ResearchView.css | 7 +++++++ .../dashboard/app/components/StashRecoveryView.css | 7 +++++++ .../app/components/__tests__/GoalsView.test.tsx | 20 ++++++++++++++++++++ .../app/components/__tests__/ResearchView.test.tsx | 19 +++++++++++++++++++ .../components/__tests__/StashRecoveryView.test.tsx | 20 ++++++++++++++++++++ 6 files changed, 80 insertions(+) Fusion-Task-Id: FN-6789 Fusion-Task-Lineage: f650d95b-583b-48c8-a2e4-fe63317b4576
289 lines
5.4 KiB
CSS
289 lines
5.4 KiB
CSS
/*
|
|
FNXC:GoalsViewStyling 2026-06-20-01:33:
|
|
FN-6789 mounts Goals as a flex child of .project-content; grow, zero min-width, and use 100% width so the view fills the viewport instead of collapsing to intrinsic content width, mirroring the FN-6446 SecretsView fix.
|
|
*/
|
|
.goals-view {
|
|
display: flex;
|
|
flex: 1 1 auto;
|
|
flex-direction: column;
|
|
gap: var(--space-lg);
|
|
height: 100%;
|
|
min-height: 0;
|
|
min-width: 0;
|
|
width: 100%;
|
|
overflow-y: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
padding: var(--space-lg);
|
|
}
|
|
|
|
.goals-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.goals-title {
|
|
margin: 0;
|
|
color: var(--text);
|
|
font-size: calc(var(--space-lg) + var(--space-xs));
|
|
}
|
|
|
|
.goals-count {
|
|
margin: 0;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.goals-add-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.goals-add-button:focus-visible,
|
|
.goals-card:focus-visible,
|
|
.goals-activate-button:focus-visible {
|
|
outline: none;
|
|
box-shadow: var(--focus-ring-strong);
|
|
}
|
|
|
|
.goals-warning {
|
|
margin: 0;
|
|
padding: var(--space-md);
|
|
border-radius: var(--radius-md);
|
|
border: calc(var(--space-xs) / 4) solid var(--color-warning);
|
|
background: color-mix(in srgb, var(--color-warning) 10%, transparent);
|
|
color: var(--color-warning);
|
|
}
|
|
|
|
.goals-error {
|
|
margin: 0;
|
|
}
|
|
|
|
.goals-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.goals-form-label {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.goals-form-label-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.goals-form-draft-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.goals-form textarea.input {
|
|
min-height: calc(var(--space-2xl) * 2);
|
|
resize: vertical;
|
|
}
|
|
|
|
.goals-form-actions {
|
|
display: flex;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.goals-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.goals-card {
|
|
display: flex;
|
|
align-items: stretch;
|
|
justify-content: space-between;
|
|
gap: var(--space-md);
|
|
scroll-margin-top: var(--space-xl);
|
|
}
|
|
|
|
.goals-card--anchored {
|
|
border-color: var(--color-warning);
|
|
box-shadow: var(--focus-ring-strong);
|
|
}
|
|
|
|
.goals-card-archived {
|
|
border-color: color-mix(in srgb, var(--text-muted) 25%, transparent);
|
|
}
|
|
|
|
.goals-card-main {
|
|
min-width: 0;
|
|
}
|
|
|
|
.goals-card-edit {
|
|
display: flex;
|
|
flex: 1;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.goals-card-title {
|
|
margin: 0;
|
|
color: var(--text);
|
|
font-size: calc(var(--space-md) + var(--space-xs));
|
|
}
|
|
|
|
.goals-card-description {
|
|
margin: var(--space-xs) 0 0;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.goals-card-description > :first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.goals-card-description > :last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.goals-card-description-collapsed {
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 4;
|
|
overflow: hidden;
|
|
max-height: calc(var(--space-md) * 6);
|
|
}
|
|
|
|
.goals-card-description-toggle {
|
|
margin-top: var(--space-xs);
|
|
align-self: flex-start;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.goals-card-status {
|
|
margin: var(--space-xs) 0 0;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.goals-card-actions {
|
|
display: flex;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.goals-linked-missions {
|
|
display: flex;
|
|
flex: 1;
|
|
min-width: 0;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
padding-left: var(--space-md);
|
|
border-left: calc(var(--space-xs) / 4) solid var(--border);
|
|
}
|
|
|
|
.goals-linked-missions-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-sm);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.goals-linked-missions-title {
|
|
margin: 0;
|
|
color: var(--text-muted);
|
|
font-size: calc(var(--space-sm) + var(--space-xs));
|
|
font-weight: 600;
|
|
}
|
|
|
|
.goals-linked-missions-count,
|
|
.goals-linked-mission-status,
|
|
.goals-linked-missions-empty {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.goals-linked-missions-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.goals-linked-missions-picker {
|
|
flex: 1 1 calc(var(--space-xl) * 10);
|
|
min-width: 0;
|
|
}
|
|
|
|
.goals-linked-missions-link-button,
|
|
.goals-linked-mission-chip,
|
|
.goals-linked-mission-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.goals-linked-missions-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.goals-linked-mission-chip {
|
|
gap: calc(var(--space-xs) / 2);
|
|
padding: calc(var(--space-xs) / 2);
|
|
border: calc(var(--space-xs) / 4) solid var(--border);
|
|
border-radius: var(--radius-pill);
|
|
background: var(--surface-1);
|
|
}
|
|
|
|
.goals-linked-mission-link {
|
|
border-radius: var(--radius-pill);
|
|
}
|
|
|
|
.goals-linked-missions-empty {
|
|
margin: 0;
|
|
}
|
|
|
|
.goals-activate-button {
|
|
min-width: calc(var(--space-2xl) * 2);
|
|
}
|
|
|
|
.goals-empty {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.goals-header {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.goals-card {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.goals-form-actions,
|
|
.goals-card-actions,
|
|
.goals-linked-missions-controls {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.goals-linked-missions {
|
|
padding-left: 0;
|
|
padding-top: var(--space-md);
|
|
border-left: 0;
|
|
border-top: calc(var(--space-xs) / 4) solid var(--border);
|
|
}
|
|
|
|
.goals-linked-missions-link-button,
|
|
.goals-linked-missions-picker {
|
|
width: 100%;
|
|
}
|
|
|
|
.goals-card-description-collapsed {
|
|
-webkit-line-clamp: 3;
|
|
max-height: calc(var(--space-md) * 5);
|
|
}
|
|
}
|