Make general settings discoverable (drawer entry + segmented scope switch); suspend vector memory as important TODO
This commit is contained in:
1 parent
bc8dc54337
commit
22967ef60e
6 files changed
+21
-9
No files matched your search
+8
-3
@@ -101,7 +101,7 @@ body.resizing { cursor: col-resize; user-select: none; }
|
||||
.sess-btn:hover { background: var(--border); }
|
||||
.sess-btn.danger:hover { background: var(--danger); }
|
||||
@media (hover: none) { .session-actions { opacity: 1; } }
|
||||
.drawer-foot { padding: 12px; border-top: 1px solid var(--border); }
|
||||
.drawer-foot { padding: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
|
||||
|
||||
/* ---- Main column ---- */
|
||||
#main { flex: 1; display: flex; flex-direction: column; min-width: 0; height: 100dvh; }
|
||||
@@ -298,8 +298,13 @@ details.thinking .reasoning {
|
||||
|
||||
/* ---- Settings modal ---- */
|
||||
.settings-card { width: min(560px, 100%); max-height: 85vh; overflow-y: auto; }
|
||||
.scope-toggle { display: flex; gap: 8px; margin: 0 0 12px; }
|
||||
.scope-toggle .btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
|
||||
/* Scope switch reads as a segmented control so the two scopes are unmistakable. */
|
||||
.scope-toggle {
|
||||
display: flex; gap: 3px; margin: 0 0 12px; padding: 3px;
|
||||
background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px;
|
||||
}
|
||||
.scope-toggle .btn { flex: 1; border: none; background: transparent; min-height: 38px; border-radius: 8px; }
|
||||
.scope-toggle .btn.active { background: var(--accent); color: #fff; }
|
||||
#set-hint { margin: 0 0 12px; }
|
||||
#set-name-hint { margin: -8px 0 12px; }
|
||||
.small { font-size: 0.8rem; }
|
||||
|
||||
@@ -874,6 +874,7 @@ function wire() {
|
||||
$("#stats-modal").addEventListener("click", (e) => { if (e.target.id === "stats-modal") closeStats(); });
|
||||
document.addEventListener("keydown", (e) => { if (e.key === "Escape" && !$("#stats-modal").hidden) closeStats(); });
|
||||
$("#show-settings").addEventListener("click", () => openSettings("session"));
|
||||
$("#show-general-settings").addEventListener("click", () => { openSettings("general"); closeDrawer(); });
|
||||
$("#set-scope-session").addEventListener("click", () => openSettings("session"));
|
||||
$("#set-scope-general").addEventListener("click", () => openSettings("general"));
|
||||
$("#set-save").addEventListener("click", saveSettings);
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
"settings.title.general": "General settings",
|
||||
"settings.scope.session": "Session",
|
||||
"settings.scope.general": "General",
|
||||
"settings.general.entry": "General settings",
|
||||
"settings.name": "Name",
|
||||
"settings.notes": "Notes (chat purpose)",
|
||||
"settings.sp": "System Prompt",
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
"settings.title.general": "Impostazioni generali",
|
||||
"settings.scope.session": "Sessione",
|
||||
"settings.scope.general": "Generali",
|
||||
"settings.general.entry": "Impostazioni generali",
|
||||
"settings.name": "Nome",
|
||||
"settings.notes": "Note (scopo della chat)",
|
||||
"settings.sp": "System Prompt",
|
||||
|
||||
Reference in new issue
Block a user