fix: restore selected session highlight alongside live indicator
The PR changed `.active` class to bind on `isSessionLive()`, which removed the visual selection state when clicking a non-live session. Split into two classes: `.active` for selection, `.live` for streaming. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -327,7 +327,7 @@ async function handleRenameConfirm() {
|
|||||||
v-for="s in group.sessions"
|
v-for="s in group.sessions"
|
||||||
:key="s.id"
|
:key="s.id"
|
||||||
class="session-item"
|
class="session-item"
|
||||||
:class="{ active: chatStore.isSessionLive(s.id) }"
|
:class="{ active: s.id === chatStore.activeSessionId, live: chatStore.isSessionLive(s.id) }"
|
||||||
@click="handleSessionClick(s.id)"
|
@click="handleSessionClick(s.id)"
|
||||||
@contextmenu="handleContextMenu($event, s.id)"
|
@contextmenu="handleContextMenu($event, s.id)"
|
||||||
>
|
>
|
||||||
@@ -625,6 +625,10 @@ async function handleRenameConfirm() {
|
|||||||
&.active .session-item-title {
|
&.active .session-item-title {
|
||||||
color: $accent-primary;
|
color: $accent-primary;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.live .session-item-title {
|
||||||
|
color: $accent-primary;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.session-item-content {
|
.session-item-content {
|
||||||
|
|||||||
Reference in New Issue
Block a user