feat: v1.2.5 — UI improvements and session management fixes

- Fix session delete to scan all claude project dirs (not just first match)
- Batch async rendering for message history with stale render guard
- Add custom draggable scrollbar for chat area
- Fix AskUserQuestion card rendered at bottom instead of top
- Fix bubble split (msg-text + msg-tools) to prevent tool UI overwrite
- Add delete confirmation dialog with warm theme styling
- Support multiline display in user messages
- Apply model config to settings.json immediately on save
This commit is contained in:
cc-dan
2026-03-10 15:19:47 +00:00
parent 10603eb31b
commit b64d5ec029
4 changed files with 271 additions and 81 deletions

View File

@@ -334,17 +334,60 @@ body {
}
/* === Messages === */
.messages {
.messages-wrap {
flex: 1;
overflow-y: auto;
position: relative;
overflow: hidden;
min-height: 0;
}
.messages {
height: 100%;
overflow-y: scroll;
overflow-x: hidden;
padding: 16px;
padding-right: 20px;
display: flex;
flex-direction: column;
gap: 12px;
-webkit-overflow-scrolling: touch;
overscroll-behavior: contain;
scrollbar-width: none;
}
.messages::-webkit-scrollbar { display: none; }
/* Custom scrollbar */
.custom-scrollbar {
position: absolute;
right: 2px;
top: 0;
bottom: 0;
width: 6px;
pointer-events: none;
opacity: 0;
transition: opacity 0.2s;
}
.messages-wrap:hover .custom-scrollbar,
.custom-scrollbar.active {
opacity: 1;
}
.custom-scrollbar-thumb {
position: absolute;
right: 0;
width: 6px;
min-height: 30px;
border-radius: 4px;
background: var(--scrollbar-thumb);
cursor: grab;
transition: width 0.15s, right 0.15s, background 0.15s;
pointer-events: all;
}
.custom-scrollbar-thumb:hover,
.custom-scrollbar-thumb.dragging {
width: 12px;
right: -3px;
background: #b0a090;
cursor: grab;
}
.custom-scrollbar-thumb.dragging { cursor: grabbing; }
.welcome-msg {
text-align: center;
margin: auto;
@@ -519,33 +562,6 @@ body {
line-height: 1.5;
white-space: pre;
}
/* HTML preview */
.code-html-preview {
border-top: 1px solid var(--border-color);
background: var(--bg-secondary);
}
.code-html-preview summary {
padding: 6px 12px;
cursor: pointer;
font-size: 12px;
color: var(--text-secondary);
user-select: none;
list-style: none;
}
.code-html-preview summary::-webkit-details-marker { display: none; }
.code-html-preview summary::before {
content: '▸';
font-size: 11px;
transition: transform 0.2s;
margin-right: 6px;
}
.code-html-preview[open] summary::before { transform: rotate(90deg); }
.code-html-preview iframe {
width: 100%;
min-height: 180px;
border: 0;
background: #fff;
}
/* Tool calls */
.tool-call {