Changeset 0.7.2 (#40)

This commit is contained in:
2026-02-21 19:03:19 +00:00
parent 494b1aa981
commit 416e5439ea
28 changed files with 3813 additions and 138 deletions

View File

@@ -570,6 +570,36 @@ a:hover { text-decoration: underline; }
max-height: 300px; overflow-y: auto; line-height: 1.6;
}
/* Tool activity indicators */
.msg-tools {
display: flex; flex-direction: column; gap: 4px;
margin-bottom: 0.5rem;
}
.tool-activity {
display: flex; align-items: center; gap: 6px;
font-size: 12px; color: var(--text-3);
background: var(--bg-raised); border: 1px solid var(--border);
padding: 4px 10px; border-radius: var(--radius);
animation: tool-fade-in 0.2s ease;
}
@keyframes tool-fade-in { from { opacity: 0; transform: translateY(-4px); } }
.tool-icon { font-size: 13px; }
.tool-name { font-family: var(--mono); font-size: 11px; color: var(--text-2); }
.tool-status { font-size: 11px; margin-left: auto; }
.tool-running { color: var(--warning); }
.tool-running::after {
content: ''; display: inline-block; width: 4px; height: 4px;
border-radius: 50%; background: var(--warning); margin-left: 4px;
animation: tool-pulse 1s infinite;
}
@keyframes tool-pulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }
.tool-done { color: var(--success); }
.tool-error { color: var(--danger); }
.tool-hint {
font-size: 11px; color: var(--text-3); margin-left: 6px;
max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Empty state */
.empty-state {
display: flex; flex-direction: column; align-items: center;
@@ -1064,6 +1094,175 @@ button { font-family: var(--font); cursor: pointer; }
.debug-pre { white-space: pre-wrap; word-break: break-all; max-height: 200px; overflow: auto; padding: 6px; background: rgba(0,0,0,0.2); border-radius: 4px; margin: 4px 0; }
.debug-footer { display: flex; align-items: center; }
/* ── Sidebar Notes Button ───────────────── */
.sidebar-notes-btn {
padding: 4px 8px; border-top: 1px solid var(--border);
flex-shrink: 0;
}
.sb-notes {
display: flex; align-items: center; gap: 8px; width: 100%;
padding: 8px 12px; background: none; border: none;
border-radius: var(--radius); color: var(--text-2);
cursor: pointer; font-size: 13px; font-family: var(--font);
transition: background var(--transition), color var(--transition);
}
.sb-notes:hover { background: var(--bg-hover); color: var(--text); }
.sidebar.collapsed .sidebar-notes-btn .sb-label { display: none; }
.sidebar.collapsed .sb-notes { justify-content: center; padding: 8px; }
/* ── Notes Modal ────────────────────────── */
.notes-header-actions { display: flex; align-items: center; gap: 8px; }
.notes-toolbar {
display: flex; gap: 8px; padding: 10px 20px;
border-bottom: 1px solid var(--border);
background: var(--bg-raised);
}
.notes-search-wrap {
display: flex; align-items: center; gap: 6px; flex: 1;
background: var(--bg-surface); border: 1px solid var(--border);
border-radius: var(--radius); padding: 0 10px;
}
.notes-search-wrap svg { color: var(--text-3); flex-shrink: 0; }
.notes-search-wrap input {
flex: 1; background: none; border: none; color: var(--text);
font-size: 13px; font-family: var(--font); padding: 6px 0;
outline: none;
}
.notes-filter-select {
background: var(--bg-surface); border: 1px solid var(--border);
border-radius: var(--radius); color: var(--text); font-size: 12px;
padding: 4px 8px; font-family: var(--font); cursor: pointer;
max-width: 160px;
}
.notes-body { padding: 0 !important; }
/* Selection bar */
.notes-selection-bar {
display: flex; align-items: center; gap: 10px;
padding: 6px 20px;
background: var(--accent-dim); border-bottom: 1px solid var(--border);
font-size: 12px;
}
.notes-select-all {
display: flex; align-items: center; gap: 6px;
color: var(--text-2); cursor: pointer; font-size: 12px;
}
.notes-select-all input { cursor: pointer; }
.notes-list { padding: 8px; }
.notes-empty, .notes-loading {
text-align: center; color: var(--text-3); padding: 2rem;
font-size: 13px;
}
.note-item {
display: flex; align-items: flex-start; gap: 8px;
padding: 10px 12px; border-radius: var(--radius);
cursor: pointer; border: 1px solid transparent;
transition: background var(--transition), border-color var(--transition);
}
.note-item:hover {
background: var(--bg-hover); border-color: var(--border);
}
.note-item.selected {
background: var(--accent-dim); border-color: var(--accent);
}
.note-select-col { flex-shrink: 0; padding-top: 2px; }
.note-checkbox { cursor: pointer; accent-color: var(--accent); }
.note-content-col { flex: 1; min-width: 0; }
.note-item-header {
display: flex; align-items: baseline; justify-content: space-between;
gap: 8px; margin-bottom: 2px;
}
.note-item-title {
font-size: 13px; font-weight: 600; color: var(--text);
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.note-item-time { font-size: 11px; color: var(--text-3); flex-shrink: 0; }
.note-preview {
font-size: 12px; color: var(--text-3); line-height: 1.4;
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
max-height: 1.4em;
}
.note-headline {
font-size: 12px; color: var(--text-3); line-height: 1.4;
}
.note-headline mark {
background: var(--accent-dim); color: var(--accent);
padding: 0 2px; border-radius: 2px;
}
.note-item-meta {
display: flex; align-items: center; gap: 4px;
margin-top: 4px; flex-wrap: wrap;
}
.note-folder {
font-size: 11px; color: var(--text-3); font-family: var(--mono);
background: var(--bg-raised); padding: 1px 6px; border-radius: 3px;
}
.note-tag {
font-size: 10px; color: var(--purple); background: var(--purple-dim);
padding: 1px 6px; border-radius: 3px;
}
/* Notes editor */
.notes-editor { padding: 12px; }
.notes-editor-toolbar {
display: flex; align-items: center; justify-content: space-between;
margin-bottom: 8px;
}
/* Note read mode */
.note-read-title {
font-size: 18px; font-weight: 600; color: var(--text);
margin: 0 0 6px; line-height: 1.3;
}
.note-read-meta {
display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
margin-bottom: 12px;
}
.note-read-content {
font-size: var(--msg-font, 14px); line-height: 1.7;
max-height: 50vh; overflow-y: auto;
padding: 12px; background: var(--bg-surface);
border: 1px solid var(--border); border-radius: var(--radius);
}
.notes-back-btn {
background: none; border: none; color: var(--text-3);
cursor: pointer; font-size: 12px; font-family: var(--font);
padding: 4px 0; margin-bottom: 8px;
transition: color var(--transition);
}
.notes-back-btn:hover { color: var(--text); }
.notes-title-input {
font-size: 16px !important; font-weight: 600;
border: 1px solid var(--border) !important;
padding: 8px 10px !important;
}
.notes-folder-input, .notes-tags-input {
font-size: 12px !important; font-family: var(--mono);
}
.notes-content-input {
font-size: 13px !important; line-height: 1.6 !important;
min-height: 200px; resize: vertical;
font-family: var(--mono); border: 1px solid var(--border) !important;
}
.notes-editor input, .notes-editor textarea {
width: 100%; background: var(--bg-surface); color: var(--text);
border: 1px solid var(--border); border-radius: var(--radius);
padding: 6px 10px; font-family: var(--font); outline: none;
transition: border-color var(--transition);
}
.notes-editor input:focus, .notes-editor textarea:focus {
border-color: var(--accent);
}
.notes-editor-actions {
display: flex; gap: 8px; margin-top: 12px;
}
/* ── Responsive ──────────────────────────── */
.mobile-menu-btn {