aboutsummaryrefslogtreecommitdiffstats
path: root/static/deck.css
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-10 20:26:06 +0100
committerDanilo M. <danix@danix.xyz>2026-11-10 20:26:06 +0100
commit085eaa7d3876fa0c9f5d5390bfe2395b85e46b62 (patch)
tree13cb5f15d93a6eaa476cc088f8af436d141c1ebb /static/deck.css
parentb61e74a1627b8387974c490626f30a76b99fb767 (diff)
downloaddeck-it-085eaa7d3876fa0c9f5d5390bfe2395b85e46b62.tar.gz
deck-it-085eaa7d3876fa0c9f5d5390bfe2395b85e46b62.zip
feat(assistant): replies type out, state and bouncing dots in the bubble
The live reply was rebuilt from scratch every 0.5 s poll, so text landed in chunks. It is now kept and updated in place, and its text types out between polls, catching up with what has arrived in about 0.6 s. The thinking/transcribing/tool line moves from the bottom bar into the reply bubble, and three dots bounce in turn until the first words. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'static/deck.css')
-rw-r--r--static/deck.css11
1 files changed, 10 insertions, 1 deletions
diff --git a/static/deck.css b/static/deck.css
index 0977279..1d02a85 100644
--- a/static/deck.css
+++ b/static/deck.css
@@ -517,7 +517,7 @@ select {
background: var(--udt-surface0); border: 1px solid var(--udt-surface1); color: var(--udt-text); max-width: 50%;
}
.assistant .as-model span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
-.assistant .as-status { flex: 1; color: var(--udt-subtext0); font-size: 0.857rem; }
+.assistant .as-gap { flex: 1; } /* pushes the mic right; the state is in the live bubble */
.assistant .as-models {
position: absolute; top: 58px; left: 0; z-index: 2; max-height: 60%; overflow-y: auto; min-width: 50%;
background: var(--udt-mantle); border: 1px solid var(--udt-surface1); border-radius: 12px; padding: 6px;
@@ -576,6 +576,15 @@ select {
.assistant .as-bubble .md > :first-child { margin-top: 0; }
.assistant .as-bubble .md > :last-child { margin-bottom: 0; }
.assistant .as-tools { font-size: 0.786rem; color: var(--udt-overlay0); }
+.assistant .as-state { font-size: 0.786rem; font-style: italic; color: var(--udt-subtext0); }
+.assistant .as-state:empty { display: none; }
+/* Three dots bouncing in turn while the reply has no words yet. */
+.assistant .as-dots { display: inline-flex; gap: 5px; padding: 6px 0 2px; }
+.assistant .as-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--udt-subtext0);
+ animation: as-bounce 1.2s ease-in-out infinite; }
+.assistant .as-dots i:nth-child(2) { animation-delay: .15s; }
+.assistant .as-dots i:nth-child(3) { animation-delay: .3s; }
+@keyframes as-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-6px); opacity: 1; } }
.assistant .md { line-height: 1.45; overflow-wrap: anywhere; }
.assistant .md pre { position: relative; background: var(--udt-crust); border-radius: 8px; padding: 10px; overflow-x: auto; }
.assistant .md pre .copy { position: absolute; top: 4px; right: 4px; }