518 lines
12 KiB
CSS
518 lines
12 KiB
CSS
/* === MemoryView === */
|
|
/*
|
|
FNXC:Navigation 2026-06-22-01:10:
|
|
The title row now comes from the shared .view-header (which supplies the --space-lg top/side padding). The root drops its uniform padding; the tab bar and content area carry their own horizontal inset so they align under the header.
|
|
*/
|
|
.memory-view {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/*
|
|
FNXC:Navigation 2026-06-22-02:30:
|
|
After the header migrated to the shared .view-header (which is flex-shrink:0), the sibling tab bar must also be flex-shrink:0. Without it the tabs collapse under the flex column at constrained heights, letting .memory-view-content overlap the header/tabs. The scroll owner is the active tab pane (.memory-*-tab, flex:1 + min-height:0 + overflow-y:auto); the editor container keeps min-height:0 through the chain so CodeMirror bounds itself and never overruns the action bar.
|
|
*/
|
|
.memory-view-tabs {
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: var(--space-xs);
|
|
border-bottom: 1px solid var(--border);
|
|
margin: var(--space-md) 0 var(--space-lg);
|
|
padding: 0 var(--space-lg);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.memory-view-tab {
|
|
padding: var(--space-sm) var(--space-md);
|
|
border-radius: var(--radius-sm) var(--radius-sm) 0 0;
|
|
color: var(--text-muted);
|
|
background: transparent;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
transition: background var(--transition-fast), color var(--transition-fast);
|
|
}
|
|
|
|
.memory-view-tab:hover {
|
|
background: var(--card-hover);
|
|
color: var(--text);
|
|
}
|
|
|
|
.memory-view-tab:focus-visible {
|
|
outline: none;
|
|
box-shadow: var(--focus-ring);
|
|
}
|
|
|
|
.memory-view-tab--active {
|
|
color: var(--text);
|
|
border-bottom: 2px solid var(--todo);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.memory-view-content {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 0 var(--space-lg) var(--space-lg);
|
|
}
|
|
|
|
.memory-working-tab,
|
|
.memory-insights-tab,
|
|
.memory-engines-tab {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/*
|
|
FNXC:Memory 2026-06-22-18:10:
|
|
REAL ROOT CAUSE of the "Working Memory" overlap (char-count over the MEMORY FILE label, a line struck through the <select>, the section header on top of its card): a CSS cascade collision, NOT vertical flex compression.
|
|
|
|
`.memory-editor-section`, `.memory-editor-form-group`, and `.memory-file-summary` are defined in THREE stylesheets — styles.css, SettingsModal.css, and this file — because the SettingsModal MemorySection reuses the same class names. MemoryView.tsx imports BOTH ./MemoryView.css AND ./SettingsModal.css (in that order), so SettingsModal.css's copies (single-class, equal specificity) are injected LAST and WIN. Its `.memory-editor-section { flex: 1 1 auto }` made the editor section greedily claim the tab height while its child `.memory-editor-container` carried a large fixed `min-height` (the CodeMirror floor). On a constrained viewport the section box shrank to its flex allotment but the fixed-min-height editor frame could NOT, so the frame overflowed the (overflow:visible) section and BLED downward, painting on top of the next siblings — that bleed is the overlap, not shrunken siblings. The earlier flex-shrink:0 patch failed because the siblings were never the ones shrinking; the editor frame was overflowing onto them.
|
|
|
|
Fix: scope the working-tab layout under `.memory-working-tab` so these rules out-specify the SettingsModal.css copies regardless of import order, and let the editor block size to its content (flex:0 0 auto). The tab itself (`.memory-working-tab`, overflow-y:auto) is the sole scroll owner, so every block flows in a clean intrinsic-height vertical stack and the tab scrolls instead of any box overflowing onto the next.
|
|
*/
|
|
.memory-action-bar,
|
|
.memory-config-section {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.memory-working-tab .memory-editor-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 0 0 auto;
|
|
min-height: 0;
|
|
}
|
|
|
|
/*
|
|
FNXC:Memory 2026-06-22-18:10:
|
|
Inside the working-tab editor section every block keeps its intrinsic height (flex:0 0 auto) so the file <select>, its hint, the layer summary, and the editor each occupy their own row with no overlap. The CodeMirror frame holds a fixed visible floor via .memory-editor-container's min-height; the surrounding tab scrolls.
|
|
*/
|
|
.memory-working-tab .memory-editor-section > .form-group,
|
|
.memory-working-tab .memory-editor-section > .memory-file-summary {
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.memory-working-tab .memory-editor-form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 0 0 auto;
|
|
min-height: 0;
|
|
}
|
|
|
|
/*
|
|
FNXC:Memory 2026-06-23-00:20:
|
|
The memory editor box is CAPPED to about a page (max-height: 60vh) so a long memory file does not push the page into endless scrolling — the box itself stays bounded and the CodeMirror editor SCROLLS INTERNALLY. cm-editor fills the capped container (height:100%) and cm-scroller owns the vertical scroll.
|
|
*/
|
|
.memory-editor-container {
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1 1 auto;
|
|
min-height: calc(var(--space-xl) * 13 + var(--space-xs) * 2);
|
|
max-height: 60vh;
|
|
}
|
|
|
|
.memory-editor-container .cm-editor {
|
|
height: 100%;
|
|
min-height: 0;
|
|
}
|
|
|
|
.memory-editor-container .cm-scroller {
|
|
overflow: auto;
|
|
}
|
|
|
|
.memory-insights-editor-layout {
|
|
display: flex;
|
|
flex: 1;
|
|
min-height: 0;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.memory-category-section {
|
|
margin-bottom: var(--space-lg);
|
|
}
|
|
|
|
.memory-category-header {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
padding: var(--space-sm) 0;
|
|
border-bottom: 1px solid var(--border);
|
|
transition: opacity var(--transition-fast);
|
|
}
|
|
|
|
.memory-category-header:hover {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.memory-category-header h4 {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
margin: 0;
|
|
color: var(--text);
|
|
}
|
|
|
|
.memory-category-count {
|
|
font-size: calc(var(--space-sm) + var(--space-xs) * 0.75);
|
|
color: var(--text-muted);
|
|
background: color-mix(in srgb, var(--text-muted) 15%, transparent);
|
|
padding: 2px 8px;
|
|
border-radius: var(--radius-pill);
|
|
}
|
|
|
|
.memory-category-items {
|
|
padding-top: var(--space-sm);
|
|
}
|
|
|
|
.memory-insight-item {
|
|
padding: var(--space-xs) var(--space-sm);
|
|
margin-bottom: var(--space-xs);
|
|
border-left: 3px solid var(--border);
|
|
font-size: 13px;
|
|
color: var(--text);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.memory-engine-card {
|
|
background: var(--card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-lg);
|
|
padding: var(--space-xl);
|
|
margin-bottom: var(--space-lg);
|
|
}
|
|
|
|
.memory-engine-card h3 {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
margin: 0 0 var(--space-md) 0;
|
|
color: var(--text);
|
|
}
|
|
|
|
.memory-engine-status {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.memory-health-badge {
|
|
display: inline-block;
|
|
padding: 2px 10px;
|
|
border-radius: var(--radius-pill);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.memory-health-badge--healthy {
|
|
background: color-mix(in srgb, var(--color-success) 15%, transparent);
|
|
color: var(--color-success);
|
|
}
|
|
|
|
.memory-health-badge--warning {
|
|
background: color-mix(in srgb, var(--color-warning) 15%, transparent);
|
|
color: var(--color-warning);
|
|
}
|
|
|
|
.memory-health-badge--issues {
|
|
background: color-mix(in srgb, var(--color-error) 15%, transparent);
|
|
color: var(--color-error);
|
|
}
|
|
|
|
.memory-action-bar {
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: var(--space-sm);
|
|
margin-top: var(--space-md);
|
|
align-items: center;
|
|
}
|
|
|
|
.memory-empty-extract-button {
|
|
margin-top: var(--space-md);
|
|
}
|
|
|
|
.memory-stat-value--updated {
|
|
font-size: var(--space-lg);
|
|
}
|
|
|
|
.memory-capability-row {
|
|
display: flex;
|
|
gap: var(--space-xs);
|
|
margin-top: var(--space-sm);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.memory-emphasis-text {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.memory-health-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: var(--space-md);
|
|
}
|
|
|
|
.memory-health-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.memory-health-label {
|
|
font-size: var(--space-md);
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
margin-bottom: var(--space-xs);
|
|
}
|
|
|
|
.memory-health-detail {
|
|
font-size: var(--space-md);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.memory-health-section {
|
|
margin-top: var(--space-md);
|
|
padding-top: var(--space-md);
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.memory-status-text--success {
|
|
color: var(--color-success);
|
|
}
|
|
|
|
.memory-status-text--error {
|
|
color: var(--color-error);
|
|
}
|
|
|
|
.memory-status-text--warning {
|
|
color: var(--color-warning);
|
|
}
|
|
|
|
.memory-status-text--muted {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.memory-audit-check-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.memory-settings-note {
|
|
margin-top: var(--space-lg);
|
|
font-size: var(--space-md);
|
|
color: var(--text-muted);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.memory-settings-note-button {
|
|
background: none;
|
|
border: none;
|
|
color: inherit;
|
|
cursor: pointer;
|
|
font: inherit;
|
|
padding: 0;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.memory-settings-note-button:focus-visible {
|
|
outline: none;
|
|
border-radius: var(--radius-sm);
|
|
box-shadow: var(--focus-ring-strong);
|
|
}
|
|
|
|
.memory-empty-state {
|
|
color: var(--text-muted);
|
|
padding: var(--space-2xl);
|
|
text-align: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.memory-stats-row {
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: var(--space-lg);
|
|
margin-bottom: var(--space-lg);
|
|
}
|
|
|
|
.memory-stat-card {
|
|
background: var(--card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
padding: var(--space-md) var(--space-lg);
|
|
flex: 1;
|
|
}
|
|
|
|
.memory-stat-value {
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
margin-bottom: var(--space-xs);
|
|
}
|
|
|
|
.memory-stat-label {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.memory-audit-check {
|
|
display: flex;
|
|
flex-direction: row;
|
|
padding: var(--space-sm) 0;
|
|
border-bottom: 1px solid var(--border);
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.memory-audit-check:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.memory-audit-check-passed {
|
|
color: var(--color-success);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.memory-audit-check-failed {
|
|
color: var(--color-error);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.memory-capability-badge {
|
|
font-size: 11px;
|
|
padding: 2px 8px;
|
|
border-radius: var(--radius-pill);
|
|
background: color-mix(in srgb, var(--todo) 15%, transparent);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.memory-readonly-banner {
|
|
background: color-mix(in srgb, var(--color-warning) 10%, transparent);
|
|
border: 1px solid color-mix(in srgb, var(--color-warning) 30%, transparent);
|
|
border-radius: var(--radius-md);
|
|
padding: var(--space-md);
|
|
color: var(--color-warning);
|
|
font-size: 13px;
|
|
margin-bottom: var(--space-md);
|
|
}
|
|
|
|
.memory-char-count {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.memory-categories-list {
|
|
margin-top: var(--space-lg);
|
|
}
|
|
|
|
.memory-config-section {
|
|
margin-top: var(--space-lg);
|
|
padding-top: var(--space-lg);
|
|
border-top: 1px solid var(--border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-md);
|
|
}
|
|
|
|
.memory-settings-group {
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
background: var(--surface);
|
|
padding: var(--space-sm) 0;
|
|
}
|
|
|
|
.memory-flex-spacer {
|
|
flex: 1;
|
|
}
|
|
|
|
.memory-qmd-card {
|
|
border-style: solid;
|
|
}
|
|
|
|
.memory-retrieval-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.memory-retrieval-input-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.memory-retrieval-input-row .input {
|
|
flex: 1;
|
|
}
|
|
|
|
.memory-retrieval-card .memory-test-result {
|
|
margin-top: var(--space-sm);
|
|
}
|
|
|
|
/* === Memory View Styles === */
|
|
|
|
/* Mobile responsive for memory view */
|
|
@media (max-width: 768px) {
|
|
/* ViewHeader supplies its own responsive padding; the body blocks tighten their horizontal inset here. */
|
|
.memory-view-tabs {
|
|
padding-inline: var(--space-md);
|
|
}
|
|
|
|
.memory-view-content {
|
|
padding: 0 var(--space-md) var(--space-md);
|
|
}
|
|
|
|
.memory-editor-container {
|
|
min-height: calc(var(--space-xl) * 10);
|
|
}
|
|
|
|
.memory-stats-row {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.memory-stat-card {
|
|
min-width: calc(50% - var(--space-sm));
|
|
}
|
|
|
|
.memory-view-tab {
|
|
min-height: 36px;
|
|
padding: var(--space-sm);
|
|
}
|
|
|
|
.memory-engine-card {
|
|
padding: var(--space-md);
|
|
}
|
|
|
|
.memory-retrieval-input-row {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.memory-settings-group {
|
|
padding: var(--space-xs) 0;
|
|
}
|
|
|
|
.memory-health-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.memory-config-section {
|
|
margin-top: var(--space-md);
|
|
padding-top: var(--space-md);
|
|
}
|
|
}
|