work on journal

This commit is contained in:
2026-03-31 00:47:43 -07:00
parent 978d45fea8
commit 15e14c0dcc
5 changed files with 316 additions and 72 deletions

View File

@@ -474,6 +474,75 @@ html, body, #root {
/* ── Node help panel ─────────────────────────────────────── */
.node-help-tabs {
display: flex;
flex-wrap: wrap;
gap: 2px;
padding: 6px 8px 0;
background: #0a0f1a;
border-bottom: 1px solid #1e293b;
flex-shrink: 0;
}
.node-help-fold-btn {
background: none;
border: none;
color: #64748b;
font-size: 9px;
padding: 0 4px;
cursor: pointer;
line-height: 1;
flex-shrink: 0;
align-self: center;
transition: color 0.12s;
}
.node-help-fold-btn:hover { color: #f1f5f9; }
.node-help-tab {
display: flex;
align-items: center;
gap: 4px;
padding: 4px 8px;
border-radius: 5px 5px 0 0;
background: #0f172a;
border: 1px solid #1e293b;
border-bottom: none;
cursor: pointer;
font-size: 11px;
color: #64748b;
transition: color 0.12s, background 0.12s;
user-select: none;
max-width: 160px;
}
.node-help-tab:hover { color: #94a3b8; background: #162032; }
.node-help-tab.active {
color: #f1f5f9;
background: #1e293b;
border-color: #334155;
}
.node-help-tab-label {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.node-help-tab-close {
background: none;
border: none;
color: inherit;
font-size: 13px;
line-height: 1;
padding: 0;
cursor: pointer;
opacity: 0.6;
flex-shrink: 0;
transition: opacity 0.12s;
}
.node-help-tab-close:hover { opacity: 1; }
.node-help-panel {
position: fixed;
top: 60px;
@@ -490,35 +559,63 @@ html, body, #root {
overflow: hidden;
}
.node-help-panel-header {
.node-help-journal {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
}
.node-help-journal-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 9px 12px;
border-bottom: 1px solid #334155;
background: #0f172a;
gap: 8px;
padding: 5px 10px;
border-bottom: 1px solid #1e293b;
flex-shrink: 0;
}
.node-help-panel-title {
font-weight: 600;
font-size: 13px;
color: #f1f5f9;
}
.node-help-panel-close {
background: none;
border: none;
color: #64748b;
font-size: 20px;
line-height: 1;
padding: 0 2px;
.node-help-journal-toggle {
background: #0f172a;
border: 1px solid #334155;
color: #94a3b8;
font-size: 11px;
padding: 2px 8px;
border-radius: 4px;
cursor: pointer;
transition: color 0.12s;
transition: color 0.12s, border-color 0.12s;
}
.node-help-journal-toggle:hover { color: #f1f5f9; border-color: #475569; }
.node-help-journal-hint {
font-size: 10px;
color: #475569;
}
.node-help-panel-close:hover {
color: #f1f5f9;
.node-help-journal-textarea {
flex: 1;
background: #0d1624;
border: none;
outline: none;
color: #e2e8f0;
font-family: monospace;
font-size: 12px;
line-height: 1.6;
padding: 12px 16px;
resize: none;
min-height: 0;
width: 100%;
box-sizing: border-box;
}
.node-help-journal-preview {
cursor: text;
}
.node-help-journal-placeholder {
color: #475569;
font-style: italic;
}
.node-help-panel-body {
@@ -1652,6 +1749,19 @@ html, body, #root {
.text-note-color-btn.active {
border-color: rgba(255,255,255,0.7);
}
.text-note-fold-btn {
background: none;
border: none;
color: var(--text-faint);
font-size: 9px;
padding: 0 3px;
cursor: pointer;
line-height: 1;
flex-shrink: 0;
opacity: 0.7;
transition: opacity 0.12s;
}
.text-note-fold-btn:hover { opacity: 1; }
.text-note-hint {
margin-left: auto;
font-size: 10px;