feat(web/claw): restyle the interface after Rhema Together
android / debug (push) Successful in 2m16s
android / release (push) Successful in 2m9s
ci / checks (push) Successful in 3m39s
ci / test (push) Successful in 2m5s
ci / docker (push) Successful in 1m52s
ci / web (push) Successful in 13s
ci / publish-edge-images (deploy/docker/claw.Dockerfile, rhema-claw) (push) Successful in 1m56s
ci / chart (push) Successful in 6s
ci / publish-edge-images (deploy/docker/ui.Dockerfile, rhema-claw-ui) (push) Successful in 20s
ci / publish-edge-chart (push) Successful in 4s
android / debug (push) Successful in 2m16s
android / release (push) Successful in 2m9s
ci / checks (push) Successful in 3m39s
ci / test (push) Successful in 2m5s
ci / docker (push) Successful in 1m52s
ci / web (push) Successful in 13s
ci / publish-edge-images (deploy/docker/claw.Dockerfile, rhema-claw) (push) Successful in 1m56s
ci / chart (push) Successful in 6s
ci / publish-edge-images (deploy/docker/ui.Dockerfile, rhema-claw-ui) (push) Successful in 20s
ci / publish-edge-chart (push) Successful in 4s
The web client kept its own dark shell: an icon rail, neon jade accents, and rows that reported state with colored dots and pills. Rhema Together had since settled on a warmer, quieter language, and the two surfaces no longer looked like one product. The shell is now one 232px sidebar plus a view. Chat lists sessions in the sidebar and renders the transcript in a 760px column; settings moves its searchable nav into the same sidebar and its pages onto an 880px column. The palette, type scale, controls, cards, and markdown come from Together's light theme, with its dark values following the OS. FiraCode Nerd Font Mono sets code, and the product mark, logo, and lucide icons replace the glyph characters. Status is a word now: running, waiting, held, connected, live, snapshot. The rail, its dots, the duplicate consent deny action, and the session key tag are gone. The model backend moved into the chat topbar beside the stream state. The mobile shell keeps the composer fixed in chat and lets settings scroll as a document. README and component docs follow the new layout. nuxt typecheck and build pass; checked light and dark at 1280x800 and 390x844 against mock API data.
This commit is contained in:
1 parent
acda9cc537
commit
d17d8e2973
33 files changed
+1858
-1383
No files matched your search
@@ -1,11 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
// The session inventory: the dispatch keys a human converses with,
|
||||
// interactive first. Clicking selects the session the chat mirrors.
|
||||
// Displayed names drop the `interactive:` prefix — the full key stays
|
||||
// Displayed names drop the `interactive:` prefix, the full key stays
|
||||
// in the tooltip. Creating and deleting are intent only: the name (or
|
||||
// the key) flows up, the shell answers, and the form closes when the
|
||||
// new key lands in the inventory. The delete button asks nothing itself
|
||||
// — the confirmation, which names the transcript that goes with the
|
||||
// new key lands in the inventory. The delete button asks nothing itself:
|
||||
// the confirmation, which names the transcript that goes with the
|
||||
// session, is the shell's.
|
||||
//
|
||||
// The non-interactive keys fold under *others*: folded (the default),
|
||||
@@ -16,10 +16,11 @@
|
||||
// history route serves. The controls beside it act on its dispatch from
|
||||
// either view.
|
||||
//
|
||||
// The controls sit beside the delete button, on hover, one word each:
|
||||
// hold/run pauses and resumes the key's dispatch, stop aborts — cuts a
|
||||
// live turn, or drops the key's queued work when none runs. Nothing
|
||||
// here is destructive beyond the delete, which keeps its own dialog.
|
||||
// State is a word, not a dot: running, waiting, held, and the queued
|
||||
// count. The controls appear on hover. Hold and run pause and resume the
|
||||
// key's dispatch. Stop aborts: it cuts a live turn, or drops the key's
|
||||
// queued work when none runs.
|
||||
import { Pause, Play, Plus, RefreshCw, Settings, Square, Trash2 } from 'lucide-vue-next'
|
||||
import { SESSION_NAME_PATTERN, isResidentKey } from '~/composables/useClaw'
|
||||
import type { ClawSession } from '~/composables/useClaw'
|
||||
|
||||
@@ -27,11 +28,13 @@ const props = defineProps<{
|
||||
sessions: ClawSession[]
|
||||
activeKey: string
|
||||
loading: boolean
|
||||
clawUp: boolean | null
|
||||
identity?: { name: string | null; tagline: string | null; mark: string | null; initials: string | null } | null
|
||||
avatarUrl?: string | null
|
||||
}>()
|
||||
|
||||
const emit = defineEmits<{
|
||||
home: []
|
||||
select: [key: string]
|
||||
refresh: []
|
||||
create: [name: string]
|
||||
@@ -39,6 +42,7 @@ const emit = defineEmits<{
|
||||
pause: [key: string]
|
||||
resume: [key: string]
|
||||
abort: [key: string]
|
||||
navigateSettings: []
|
||||
}>()
|
||||
|
||||
interface Group {
|
||||
@@ -61,8 +65,8 @@ const groups = computed<Group[]>(() => {
|
||||
const byKey = (a: ClawSession, b: ClawSession) => a.key.localeCompare(b.key)
|
||||
// The resident prefixes are the chat sessions: `interactive:` is the
|
||||
// live chat surface, `task:` a scheduled task's own turn, `phone:` the
|
||||
// phone client's, `calendar:` a reminder's. The rest of the inventory —
|
||||
// `job:<instance>#<id>`, a forge thread — holds no turn record: its
|
||||
// phone client's, `calendar:` a reminder's. The rest of the inventory ,
|
||||
// `job:<instance>#<id>`, a forge thread, holds no turn record: its
|
||||
// handler never streams. Its history route serves the session stash
|
||||
// instead, so the row still opens, read-only.
|
||||
const interactive = props.sessions
|
||||
@@ -82,14 +86,14 @@ const groups = computed<Group[]>(() => {
|
||||
const groups: Group[] = []
|
||||
if (interactive.length > 0)
|
||||
groups.push({
|
||||
label: 'interactive',
|
||||
label: 'Interactive',
|
||||
rows: interactive.map(row),
|
||||
working: working(interactive),
|
||||
collapsible: false,
|
||||
})
|
||||
if (others.length > 0)
|
||||
groups.push({
|
||||
label: 'others',
|
||||
label: 'Other keys',
|
||||
rows: others.map(row),
|
||||
working: working(others),
|
||||
collapsible: true,
|
||||
@@ -98,7 +102,7 @@ const groups = computed<Group[]>(() => {
|
||||
})
|
||||
|
||||
/** Whether the others group is folded out; it starts folded, and opens
|
||||
* when the chat opens a row that lives in it — otherwise the selection
|
||||
* when the chat opens a row that lives in it, otherwise the selection
|
||||
* would be invisible. */
|
||||
const othersOpen = ref(false)
|
||||
|
||||
@@ -114,11 +118,13 @@ const shownCount = computed(() =>
|
||||
groups.value.reduce((total, group) => total + group.rows.length, 0),
|
||||
)
|
||||
|
||||
function stateTone(state: string): 'ok' | 'warn' | 'idle' {
|
||||
if (state === 'leased') return 'ok'
|
||||
if (state === 'reacquire') return 'warn'
|
||||
return 'idle'
|
||||
}
|
||||
const healthLabel = computed(() =>
|
||||
props.clawUp === null ? 'checking' : props.clawUp ? 'connected' : 'unreachable',
|
||||
)
|
||||
|
||||
const healthTone = computed(() =>
|
||||
props.clawUp === null ? 'idle' : props.clawUp ? 'ok' : 'error',
|
||||
)
|
||||
|
||||
// --- new sessions -----------------------------------------------------
|
||||
const creating = ref(false)
|
||||
@@ -164,122 +170,151 @@ watch(
|
||||
|
||||
<template>
|
||||
<aside class="sidebar">
|
||||
<header class="agent">
|
||||
<AgentAvatar
|
||||
:avatar-url="avatarUrl"
|
||||
:initials="identity?.initials ?? identity?.name?.slice(0, 1)"
|
||||
:size="34"
|
||||
/>
|
||||
<div class="agent-text">
|
||||
<strong>{{ identity?.name?.trim() || 'rhema' }}</strong>
|
||||
<span>{{ identity?.tagline?.trim() || 'the spoken word' }}</span>
|
||||
</div>
|
||||
</header>
|
||||
<header class="head">
|
||||
<span class="label">Sessions</span>
|
||||
<div class="sidebar-top">
|
||||
<SidebarBrand @home="$emit('home')" />
|
||||
</div>
|
||||
|
||||
<div class="sidebar-label">
|
||||
<span class="sidebar-label-text">Sessions</span>
|
||||
<span class="count">{{ shownCount }}</span>
|
||||
<button class="ghost" title="new session" :disabled="creating" @click="creating ? closeCreate() : openCreate()">
|
||||
+
|
||||
<button
|
||||
class="icon-btn"
|
||||
title="Refresh sessions"
|
||||
aria-label="Refresh sessions"
|
||||
:disabled="loading"
|
||||
@click="$emit('refresh')"
|
||||
>
|
||||
<RefreshCw :size="14" aria-hidden="true" />
|
||||
</button>
|
||||
<button class="ghost" title="refresh sessions" :disabled="loading" @click="$emit('refresh')">
|
||||
↻
|
||||
<button
|
||||
class="icon-btn"
|
||||
:title="creating ? 'Cancel new session' : 'New session'"
|
||||
:aria-label="creating ? 'Cancel new session' : 'New session'"
|
||||
@click="creating ? closeCreate() : openCreate()"
|
||||
>
|
||||
<Plus :size="16" aria-hidden="true" />
|
||||
</button>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
<form v-if="creating" class="new-session" @submit.prevent="submitCreate">
|
||||
<input
|
||||
ref="nameInput"
|
||||
v-model="nameDraft"
|
||||
type="text"
|
||||
class="mono"
|
||||
placeholder="session name"
|
||||
placeholder="Session name"
|
||||
autocomplete="off"
|
||||
maxlength="64"
|
||||
/>
|
||||
>
|
||||
<div class="new-actions">
|
||||
<button type="button" class="ghost" @click="closeCreate">cancel</button>
|
||||
<button type="submit" class="primary" :disabled="!nameValid">create</button>
|
||||
<button type="button" class="btn btn-sm btn-quiet" @click="closeCreate">Cancel</button>
|
||||
<button type="submit" class="btn btn-sm btn-primary" :disabled="!nameValid">Create</button>
|
||||
</div>
|
||||
<p v-if="nameDraft !== '' && !nameValid" class="new-note">
|
||||
letters, digits, dots, dashes, underscores — up to 64.
|
||||
Letters, digits, dots, dashes, underscores, up to 64.
|
||||
</p>
|
||||
</form>
|
||||
|
||||
<p v-if="shownCount === 0" class="empty">
|
||||
{{ loading ? 'loading…' : 'no sessions yet; send the first message' }}
|
||||
{{ loading ? 'Loading sessions.' : 'No sessions yet. Use + to create one.' }}
|
||||
</p>
|
||||
|
||||
<div v-for="group in groups" :key="group.label" class="group">
|
||||
<div class="group-head">
|
||||
<span class="label">{{ group.label }}</span>
|
||||
<span v-if="group.collapsible" class="working" :class="{ live: group.working > 0 }">
|
||||
{{ group.working }} working
|
||||
</span>
|
||||
<button
|
||||
v-if="group.collapsible"
|
||||
class="ghost toggle"
|
||||
:title="othersOpen ? 'fold the other keys away' : 'show every other key'"
|
||||
@click="othersOpen = !othersOpen"
|
||||
>
|
||||
{{ othersOpen ? 'less' : 'more' }}
|
||||
</button>
|
||||
</div>
|
||||
<template v-if="!group.collapsible || othersOpen">
|
||||
<div
|
||||
v-for="row in group.rows"
|
||||
:key="row.key"
|
||||
class="row"
|
||||
:class="{ active: row.key === activeKey }"
|
||||
:title="row.key"
|
||||
>
|
||||
<button class="entry" @click="$emit('select', row.key)">
|
||||
<StatusDot :tone="stateTone(row.session.state)" />
|
||||
<span class="name">{{ row.name }}</span>
|
||||
<span
|
||||
v-if="row.session.paused"
|
||||
class="held"
|
||||
title="dispatch held: nothing runs until resume"
|
||||
>
|
||||
held
|
||||
</span>
|
||||
<span v-if="row.session.inbox_depth > 0" class="depth" title="inbox depth">
|
||||
{{ row.session.inbox_depth }}
|
||||
</span>
|
||||
</button>
|
||||
<nav class="sidebar-sessions" aria-label="Sessions">
|
||||
<div v-for="group in groups" :key="group.label" class="group">
|
||||
<div class="sidebar-label group-head">
|
||||
<span class="sidebar-label-text">{{ group.label }}</span>
|
||||
<span v-if="group.collapsible && group.working > 0" class="working">
|
||||
{{ group.working }} running
|
||||
</span>
|
||||
<button
|
||||
v-if="row.session.paused"
|
||||
class="ghost act"
|
||||
:title="`resume ${row.key}`"
|
||||
@click.stop="$emit('resume', row.key)"
|
||||
v-if="group.collapsible"
|
||||
class="btn btn-sm btn-quiet toggle"
|
||||
:title="othersOpen ? 'Fold the other keys away' : 'Show every other key'"
|
||||
@click="othersOpen = !othersOpen"
|
||||
>
|
||||
run
|
||||
</button>
|
||||
<button
|
||||
v-else
|
||||
class="ghost act"
|
||||
:title="`pause ${row.key}`"
|
||||
@click.stop="$emit('pause', row.key)"
|
||||
>
|
||||
hold
|
||||
</button>
|
||||
<button
|
||||
class="ghost act stop"
|
||||
:disabled="!row.abortable"
|
||||
:title="`abort ${row.key}`"
|
||||
@click.stop="$emit('abort', row.key)"
|
||||
>
|
||||
stop
|
||||
</button>
|
||||
<button
|
||||
class="ghost remove"
|
||||
aria-label="delete session"
|
||||
:title="`delete ${row.key}`"
|
||||
@click.stop="$emit('delete', row.key)"
|
||||
>
|
||||
×
|
||||
{{ othersOpen ? 'Less' : 'More' }}
|
||||
</button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template v-if="!group.collapsible || othersOpen">
|
||||
<div
|
||||
v-for="row in group.rows"
|
||||
:key="row.key"
|
||||
class="session"
|
||||
:class="{ active: row.key === activeKey }"
|
||||
:title="row.key"
|
||||
>
|
||||
<button class="session-entry" @click="$emit('select', row.key)">
|
||||
<span class="session-name">{{ row.name }}</span>
|
||||
<span class="session-meta">
|
||||
<span v-if="row.session.paused" class="state warn">held</span>
|
||||
<span v-else-if="row.session.state === 'leased'" class="state ok">running</span>
|
||||
<span v-else-if="row.session.state === 'reacquire'" class="state warn">waiting</span>
|
||||
<span v-if="row.session.inbox_depth > 0" class="state idle">
|
||||
{{ row.session.inbox_depth }} queued
|
||||
</span>
|
||||
</span>
|
||||
</button>
|
||||
|
||||
<div class="session-actions">
|
||||
<button
|
||||
v-if="row.session.paused"
|
||||
class="icon-btn"
|
||||
:title="`Resume ${row.key}`"
|
||||
:aria-label="`Resume ${row.key}`"
|
||||
@click.stop="$emit('resume', row.key)"
|
||||
>
|
||||
<Play :size="14" aria-hidden="true" />
|
||||
</button>
|
||||
<button
|
||||
v-else
|
||||
class="icon-btn"
|
||||
:title="`Hold ${row.key}`"
|
||||
:aria-label="`Hold ${row.key}`"
|
||||
@click.stop="$emit('pause', row.key)"
|
||||
>
|
||||
<Pause :size="14" aria-hidden="true" />
|
||||
</button>
|
||||
<button
|
||||
class="icon-btn"
|
||||
:disabled="!row.abortable"
|
||||
:title="`Abort ${row.key}`"
|
||||
:aria-label="`Abort ${row.key}`"
|
||||
@click.stop="$emit('abort', row.key)"
|
||||
>
|
||||
<Square :size="12" aria-hidden="true" />
|
||||
</button>
|
||||
<button
|
||||
class="icon-btn"
|
||||
:title="`Delete ${row.key}`"
|
||||
:aria-label="`Delete ${row.key}`"
|
||||
@click.stop="$emit('delete', row.key)"
|
||||
>
|
||||
<Trash2 :size="14" aria-hidden="true" />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="sidebar-bottom">
|
||||
<button class="sidebar-link" @click="$emit('navigateSettings')">
|
||||
<Settings :size="16" aria-hidden="true" />
|
||||
<span>Settings</span>
|
||||
</button>
|
||||
<div class="sidebar-account">
|
||||
<AgentAvatar
|
||||
:avatar-url="avatarUrl"
|
||||
:initials="identity?.initials ?? identity?.name?.slice(0, 1)"
|
||||
:size="26"
|
||||
/>
|
||||
<div class="account-text">
|
||||
<span class="account-name" :title="identity?.tagline ?? undefined">
|
||||
{{ identity?.name?.trim() || 'rhema' }}
|
||||
</span>
|
||||
<span class="account-state" :class="healthTone">{{ healthLabel }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
</template>
|
||||
@@ -288,230 +323,290 @@ watch(
|
||||
.sidebar {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 0;
|
||||
width: 240px;
|
||||
flex: none;
|
||||
padding: 14px 10px;
|
||||
width: var(--sidebar-w);
|
||||
flex: 0 0 var(--sidebar-w);
|
||||
position: sticky;
|
||||
top: 0;
|
||||
height: 100vh;
|
||||
border-right: 1px solid var(--border);
|
||||
background: var(--surface);
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.agent {
|
||||
.sidebar-top {
|
||||
padding: var(--sp-4) var(--sp-3) var(--sp-1);
|
||||
}
|
||||
|
||||
.sidebar-label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 0 8px 12px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
margin-bottom: 10px;
|
||||
gap: var(--sp-2);
|
||||
padding: var(--sp-3) var(--sp-2) var(--sp-1);
|
||||
color: var(--faint);
|
||||
font-size: var(--fs-small);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.agent-text {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
.sidebar-label-text {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.agent-text strong {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.agent-text span {
|
||||
color: var(--text3);
|
||||
font-size: 11.5px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 0 8px 10px;
|
||||
}
|
||||
|
||||
.count {
|
||||
flex: 1;
|
||||
color: var(--text3);
|
||||
font-size: 12px;
|
||||
color: var(--faint);
|
||||
font-size: var(--fs-small);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.head .ghost {
|
||||
padding: 0 6px;
|
||||
.sidebar-label .icon-btn {
|
||||
width: 24px;
|
||||
min-height: 24px;
|
||||
margin-left: calc(var(--sp-1) * -1);
|
||||
}
|
||||
|
||||
.new-session {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
padding: 0 8px 10px;
|
||||
gap: var(--sp-2);
|
||||
padding: var(--sp-1) var(--sp-2) var(--sp-2);
|
||||
}
|
||||
|
||||
.new-session input {
|
||||
width: 100%;
|
||||
font-size: 12.5px;
|
||||
min-height: 32px;
|
||||
padding: var(--sp-1) var(--sp-2);
|
||||
font-size: var(--fs-meta);
|
||||
}
|
||||
|
||||
.new-actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.new-actions button {
|
||||
padding: 3px 10px;
|
||||
font-size: 12px;
|
||||
gap: var(--sp-1);
|
||||
}
|
||||
|
||||
.new-note {
|
||||
margin: 0;
|
||||
color: var(--text3);
|
||||
font-size: 11.5px;
|
||||
color: var(--faint);
|
||||
font-size: var(--fs-small);
|
||||
}
|
||||
|
||||
.empty {
|
||||
margin: 4px 8px;
|
||||
color: var(--text3);
|
||||
margin: 0;
|
||||
padding: var(--sp-3) var(--sp-2);
|
||||
color: var(--muted);
|
||||
font-size: var(--fs-meta);
|
||||
}
|
||||
|
||||
.sidebar-sessions {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow-y: auto;
|
||||
padding: 0 var(--sp-2);
|
||||
scrollbar-width: thin;
|
||||
}
|
||||
|
||||
.group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
margin-bottom: 14px;
|
||||
gap: 1px;
|
||||
margin-bottom: var(--sp-4);
|
||||
}
|
||||
|
||||
.group-head {
|
||||
padding: var(--sp-2) var(--sp-2) var(--sp-1);
|
||||
}
|
||||
|
||||
.working {
|
||||
color: var(--accent);
|
||||
font-size: var(--fs-small);
|
||||
}
|
||||
|
||||
.toggle {
|
||||
height: 22px;
|
||||
padding: 0 var(--sp-1);
|
||||
font-size: var(--fs-small);
|
||||
}
|
||||
|
||||
.session {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 0 8px 4px;
|
||||
}
|
||||
|
||||
.group-head .working {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
text-align: right;
|
||||
font-family: var(--mono);
|
||||
font-size: 11px;
|
||||
color: var(--text3);
|
||||
}
|
||||
|
||||
.group-head .working.live {
|
||||
color: var(--ok);
|
||||
}
|
||||
|
||||
.group-head .toggle {
|
||||
flex: none;
|
||||
padding: 0 6px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
/* The row owns the hover and active surface: the select button fills it
|
||||
and the delete button sits beside it, so neither has to nest in the
|
||||
other. */
|
||||
.row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
border-radius: 7px;
|
||||
padding-right: 4px;
|
||||
color: var(--text2);
|
||||
}
|
||||
|
||||
.row:hover {
|
||||
background: var(--elevated);
|
||||
gap: 0;
|
||||
border-radius: var(--r-control);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.row.active {
|
||||
background: color-mix(in srgb, var(--accent) 17%, transparent);
|
||||
color: var(--accent-text);
|
||||
.session:hover,
|
||||
.session:focus-within {
|
||||
background: var(--surface-2);
|
||||
}
|
||||
|
||||
.session.active {
|
||||
background: var(--accent-soft);
|
||||
}
|
||||
|
||||
.session-entry {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
justify-content: center;
|
||||
gap: 1px;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
padding: var(--sp-1) var(--sp-2);
|
||||
border: 0;
|
||||
border-radius: var(--r-control);
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
font-weight: 400;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.session-entry:hover:not(:disabled) {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.session-name {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
font-size: var(--fs-meta);
|
||||
line-height: var(--lh-body);
|
||||
}
|
||||
|
||||
.session.active .session-name {
|
||||
color: var(--accent);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.entry {
|
||||
.session-meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
text-align: left;
|
||||
background: none;
|
||||
border: none;
|
||||
border-radius: 7px;
|
||||
padding: 7px 10px;
|
||||
color: inherit;
|
||||
font-weight: inherit;
|
||||
gap: var(--sp-2);
|
||||
min-height: 14px;
|
||||
color: var(--faint);
|
||||
font-size: var(--fs-small);
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.row .act {
|
||||
.state {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.state.ok {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.state.warn {
|
||||
color: var(--warn);
|
||||
}
|
||||
|
||||
.state.idle {
|
||||
color: var(--faint);
|
||||
}
|
||||
|
||||
.session-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1px;
|
||||
flex: none;
|
||||
padding: 0 4px;
|
||||
font-size: 11px;
|
||||
font-family: var(--mono);
|
||||
padding-right: var(--sp-1);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.row .act.stop {
|
||||
color: var(--error);
|
||||
}
|
||||
|
||||
.row .act:disabled {
|
||||
color: var(--text3);
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.entry:disabled {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.row .remove {
|
||||
flex: none;
|
||||
padding: 0 5px;
|
||||
font-size: 13px;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.row:hover .act,
|
||||
.row:hover .remove,
|
||||
.row:focus-within .act,
|
||||
.row:focus-within .remove,
|
||||
.row.active .act,
|
||||
.row.active .remove {
|
||||
.session:hover .session-actions,
|
||||
.session:focus-within .session-actions {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.held {
|
||||
flex: none;
|
||||
font-size: 10px;
|
||||
font-family: var(--mono);
|
||||
color: var(--warn);
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: 999px;
|
||||
padding: 0 5px;
|
||||
.session-actions .icon-btn {
|
||||
width: 22px;
|
||||
min-height: 22px;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.name {
|
||||
flex: 1;
|
||||
.session-actions .icon-btn:hover:not(:disabled) {
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.sidebar-bottom {
|
||||
padding: var(--sp-2);
|
||||
border-top: 1px solid var(--border);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--sp-1);
|
||||
}
|
||||
|
||||
.sidebar-link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
gap: var(--sp-2);
|
||||
width: 100%;
|
||||
min-height: 0;
|
||||
padding: var(--sp-2);
|
||||
border: 0;
|
||||
border-radius: var(--r-control);
|
||||
background: transparent;
|
||||
color: var(--muted);
|
||||
font-size: var(--fs-meta);
|
||||
font-weight: 400;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.sidebar-link:hover:not(:disabled) {
|
||||
background: var(--surface-2);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.sidebar-account {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--sp-2);
|
||||
min-width: 0;
|
||||
padding: var(--sp-2);
|
||||
}
|
||||
|
||||
.account-text {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.account-name {
|
||||
overflow: hidden;
|
||||
color: var(--text);
|
||||
font-size: var(--fs-meta);
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.depth {
|
||||
flex: none;
|
||||
min-width: 18px;
|
||||
text-align: center;
|
||||
font-size: 11px;
|
||||
font-family: var(--mono);
|
||||
color: var(--info);
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: 999px;
|
||||
padding: 0 5px;
|
||||
.account-state {
|
||||
color: var(--faint);
|
||||
font-size: var(--fs-small);
|
||||
}
|
||||
|
||||
.account-state.ok {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.account-state.error {
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
@media (max-width: 860px) {
|
||||
.sidebar {
|
||||
position: static;
|
||||
width: 100%;
|
||||
flex: none;
|
||||
height: auto;
|
||||
max-height: 42vh;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
border-right: 0;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user