Sync voice chatId session handling

This commit is contained in:
Xin Wang
2026-06-01 10:08:15 +08:00
parent 6df6c16e1d
commit 00c1bbdc6b
8 changed files with 228 additions and 32 deletions

View File

@@ -304,6 +304,10 @@ body {
flex: 1;
}
.connection__field--chat {
flex: 0 1 220px;
}
.connection__field span {
font-size: 11px;
color: var(--text-dim);
@@ -324,11 +328,67 @@ body {
min-width: 0;
}
.connection__field input:disabled {
color: var(--text-dim);
background: rgba(148, 163, 184, 0.12);
cursor: not-allowed;
}
.connection__field input:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.18);
}
.chat-id-control {
display: flex;
min-width: 0;
}
.chat-id-control input {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.chat-id-control__copy {
flex: 0 0 auto;
display: flex;
align-items: center;
justify-content: center;
width: 34px;
border: 1px solid var(--border);
border-left: 0;
border-radius: 0 10px 10px 0;
background: var(--bg-soft);
color: var(--text-dim);
padding: 0;
cursor: pointer;
transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.chat-id-control__copy:disabled {
opacity: 0.45;
cursor: not-allowed;
}
.chat-id-control__copy:not(:disabled):hover {
color: var(--accent-strong);
border-color: var(--accent);
background: rgba(79, 140, 255, 0.08);
}
.chat-id-control__copy .copy-icon--check {
display: none;
color: var(--success);
}
.chat-id-control__copy.copied .copy-icon--default {
display: none;
}
.chat-id-control__copy.copied .copy-icon--check {
display: block;
}
.status {
display: flex;
align-items: center;
@@ -1013,6 +1073,10 @@ body {
align-items: stretch;
}
.connection__field--chat {
flex-basis: auto;
}
.ws-log__entry,
.ws-log__group-header {
grid-template-columns: 54px 38px minmax(0, 1fr);