fix: the chat's machine name on one line without the dot, cut with …; close buttons always square

This commit is contained in:
redtea committed 2026-10-16 11:17:32 +03:00
1 parent d5d57fbf1b
commit 6442c39360
2 files changed
+9 -2

No files matched your search

+3 -1
View File
@@ -258,7 +258,9 @@
} }
function where() { function where() {
const act = W() && W().activePane(); const act = W() && W().activePane();
q('.ai-where').textContent = act ? '· ' + (act.agent ? act.agent.name : '') : ''; const name = act && act.agent ? act.agent.name : '';
q('.ai-where').textContent = name;
q('.ai-where').title = name;
} }
// ---------- machines ---------- // ---------- machines ----------
+6 -1
View File
@@ -851,7 +851,9 @@ body.touch.term-active .ai-fab { bottom:104px; }
.ai-fab { transition:transform .2s ease, box-shadow .2s ease; background:linear-gradient(135deg, #5b8cff, #8b5cf6); border:0; color:#fff; } .ai-fab { transition:transform .2s ease, box-shadow .2s ease; background:linear-gradient(135deg, #5b8cff, #8b5cf6); border:0; color:#fff; }
.ai-fab:hover { transform:scale(1.06); box-shadow:0 10px 28px rgba(91,140,255,.45); } .ai-fab:hover { transform:scale(1.06); box-shadow:0 10px 28px rgba(91,140,255,.45); }
.ai-head { display:flex; align-items:center; gap:8px; padding:10px 12px; border-bottom:1px solid var(--border); } .ai-head { display:flex; align-items:center; gap:8px; padding:10px 12px; border-bottom:1px solid var(--border); }
.ai-head .ai-where { font-size:12px; } /* The machine the chat sees: its name on one line, cut with … */
.ai-head .ai-where { flex:0 1 auto; min-width:0; max-width:30%; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ai-head .ai-chatsel { flex:0 1 auto; }
.ai-list { flex:1; overflow:auto; padding:12px; display:flex; flex-direction:column; gap:10px; } .ai-list { flex:1; overflow:auto; padding:12px; display:flex; flex-direction:column; gap:10px; }
.ai-msg { max-width:92%; padding:8px 11px; border-radius:10px; font-size:14px; line-height:1.45; overflow-wrap:anywhere; } .ai-msg { max-width:92%; padding:8px 11px; border-radius:10px; font-size:14px; line-height:1.45; overflow-wrap:anywhere; }
.ai-msg.user { align-self:flex-end; background:#16324f; white-space:pre-wrap; } .ai-msg.user { align-self:flex-end; background:#16324f; white-space:pre-wrap; }
@@ -1046,3 +1048,6 @@ body.no-motion *, body.no-motion *::before, body.no-motion *::after, body.no-mot
font:12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space:pre; color:var(--text); } font:12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space:pre; color:var(--text); }
/* A command is shown as it is: no line broken inside it, a long one scrolls. */ /* A command is shown as it is: no line broken inside it, a long one scrolls. */
.ui-note { margin:0; font-size:12px; color:var(--muted); } .ui-note { margin:0; font-size:12px; color:var(--muted); }
/* Close buttons stay square, however tight the row they are in. */
.btn.close.x { flex:none; aspect-ratio:1; min-width:0; }
.ai-head .ai-close { width:32px; height:32px; }