fix(chat): stabilize header status
CI / test (push) Successful in 19s
CI / test (pull_request) Successful in 20s

This commit is contained in:
m
2026-08-21 13:34:35 +03:00
parent 6e0cf3cd1d
commit 7a59abc608
4 changed files with 27 additions and 4 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ func TestPublicSurfacesSeparateChatAndConsole(t *testing.T) {
mustNot string
}{
{path: "/", must: "Напишите Домовому обычное сообщение", mustNot: "context-preset"},
{path: "/admin", must: "context-preset", mustNot: "Напишите Домовому обычное сообщение"},
{path: "/admin", must: "Чат с Домовым", mustNot: "Напишите Домовому обычное сообщение"},
{path: "/chat", must: "Напишите Домовому обычное сообщение", mustNot: "context-preset"},
} {
recorder := httptest.NewRecorder()
+1 -1
View File
@@ -35,7 +35,7 @@ textarea { resize: vertical; min-height: 84px; max-height: 240px; padding: 14px;
#active-focus { color: var(--good); }
.cognitive-status { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.chat-header .cognitive-status { width: auto; height: auto; padding: 0; border: 0; background: transparent; color: var(--muted); font: 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.chat-header .cognitive-status { max-width: min(30vw, 320px); overflow: hidden; text-overflow: ellipsis; }
.chat-header .cognitive-status { max-width: min(30vw, 320px); margin-left: auto; overflow: hidden; text-overflow: ellipsis; }
.cognitive-status::before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--signal); }
.cognitive-status[data-state="available"] { color: var(--good); }
.cognitive-status[data-state="available"]::before { background: var(--good); }