web GUI: busy send indicator, message queue (no steer), font-size setting
- Send button turns red with hourglass + pulse while a turn is in flight; accessible busy label (state.busy). - Type-ahead while busy is queued FIFO and delivered as normal turns when free (no mid-loop steer); removable chips; queue cleared on session switch. - Font-size select in Settings: device-local (localStorage), scales UI via root --font-size; not a model/session parameter. - i18n keys added (it/en). Frontend-only; release rebuilt.
This commit is contained in:
1 parent
b34f968014
commit
2de3cf6139
5 files changed
+145
-10
No files matched your search
+30
-3
@@ -15,6 +15,7 @@
|
||||
--danger: #e5534b;
|
||||
--radius: 14px;
|
||||
--sidebar-w: 280px;
|
||||
--font-size: 16px;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
@@ -29,7 +30,7 @@ html, body {
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
||||
font-size: 16px;
|
||||
font-size: var(--font-size, 16px);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
@@ -247,6 +248,13 @@ details.thinking .reasoning {
|
||||
}
|
||||
#input:focus { outline: none; border-color: var(--accent); }
|
||||
#send { min-width: 52px; font-size: 1.3rem; }
|
||||
/* Busy: the framework is generating, so send is unavailable. Red + hourglass +
|
||||
a slow pulse make the state obvious (id+class wins over .btn:disabled grey). */
|
||||
#send.busy {
|
||||
background: var(--danger); border-color: var(--danger);
|
||||
opacity: 1; cursor: default; animation: send-pulse 1.2s ease-in-out infinite;
|
||||
}
|
||||
@keyframes send-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
|
||||
#attach { min-width: 44px; font-size: 1.2rem; }
|
||||
|
||||
/* ---- Attachment chips (composer + sent user turn) ---- */
|
||||
@@ -269,6 +277,25 @@ details.thinking .reasoning {
|
||||
.attach-chip button:hover { color: var(--danger); }
|
||||
.msg-attachments { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
|
||||
|
||||
/* ---- Queued turns (typed while busy; FIFO, no steer) ---- */
|
||||
.queue { display: flex; flex-direction: column; gap: 6px; padding: 8px 12px 0; background: var(--panel); }
|
||||
.queue-chip {
|
||||
display: flex; align-items: center; gap: 8px;
|
||||
padding: 6px 10px; background: var(--panel-2);
|
||||
border: 1px dashed var(--border); border-radius: 10px; font-size: 0.82rem;
|
||||
}
|
||||
.queue-chip .queue-label {
|
||||
flex: 0 0 auto; color: var(--muted); font-size: 0.66rem;
|
||||
text-transform: uppercase; letter-spacing: 0.6px;
|
||||
}
|
||||
.queue-chip .queue-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.queue-chip .queue-attach { flex: 0 0 auto; color: var(--muted); }
|
||||
.queue-chip button {
|
||||
border: none; background: transparent; color: var(--muted);
|
||||
cursor: pointer; font-size: 0.95rem; line-height: 1; padding: 0 2px;
|
||||
}
|
||||
.queue-chip button:hover { color: var(--danger); }
|
||||
|
||||
/* ---- Stats modal ---- */
|
||||
#stats-modal, #dialog, #settings-modal, #notepad-modal {
|
||||
position: fixed; inset: 0; z-index: 40;
|
||||
@@ -380,12 +407,12 @@ details.thinking .reasoning {
|
||||
.small { font-size: 0.8rem; }
|
||||
.field { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; }
|
||||
.field > span { font-size: 0.85rem; color: var(--muted); }
|
||||
.field input, .field textarea {
|
||||
.field input, .field textarea, .field select {
|
||||
width: 100%; background: var(--panel-2); color: var(--text);
|
||||
border: 1px solid var(--border); border-radius: 8px;
|
||||
padding: 8px 10px; font-size: 16px; font-family: inherit;
|
||||
}
|
||||
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
|
||||
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
|
||||
.field input:disabled { opacity: 0.6; }
|
||||
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
|
||||
.sess-btn:disabled { opacity: 0.35; cursor: default; }
|
||||
|
||||
Reference in new issue
Block a user