Add drag-resizable sidebar/chat separator to the web GUI

Desktop-only (>=900px) pointer-drag splitter between the session list and the chat; width clamped (200px..min(480, 50% viewport)) and persisted in localStorage; keyboard arrows + ARIA separator role; hover/focus highlight. README updated. Web assets only; suite unchanged (94 green + 2 ignored), clippy/fmt clean.
This commit is contained in:
adm committed 2026-11-24 20:57:59 +01:00
1 parent 1e13caa4ed
commit e29878bb3d
4 files changed
+67 -2

No files matched your search

+15
View File
@@ -74,6 +74,9 @@ html, body {
#scrim {
position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 20;
}
/* Resizable sidebar/chat separator: desktop only (mobile uses a drawer). */
#splitter { display: none; }
body.resizing { cursor: col-resize; user-select: none; }
.drawer-head {
display: flex; align-items: center; justify-content: space-between;
gap: 8px; padding: 12px;
@@ -171,4 +174,16 @@ details.thinking .reasoning {
#scrim { display: none !important; }
#menu { display: none; }
.msg.user .bubble { max-width: 70%; }
#splitter {
display: block; flex: 0 0 6px; width: 6px; cursor: col-resize;
position: relative; background: transparent; touch-action: none;
}
#splitter::after {
content: ""; position: absolute; top: 0; bottom: 0; left: 2px; width: 2px;
background: var(--border); transition: background 0.12s ease;
}
#splitter:hover::after, #splitter:focus-visible::after, body.resizing #splitter::after {
background: var(--accent);
}
#splitter:focus-visible { outline: none; }
}