aboutsummaryrefslogtreecommitdiffstats
path: root/static/modules
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-10 16:25:12 +0100
committerDanilo M. <danix@danix.xyz>2026-11-10 16:25:12 +0100
commitec140125f208d5f6e507dfe6b8e9abc7236cb21b (patch)
treea6ba7593121981b11f0f8167b1059a572731d15e /static/modules
parentea5a277c6b8bb2ba48b0ca8822797cf6ab0b3405 (diff)
downloaddeck-it-ec140125f208d5f6e507dfe6b8e9abc7236cb21b.tar.gz
deck-it-ec140125f208d5f6e507dfe6b8e9abc7236cb21b.zip
feat(assistant): a faint picture behind the Assistant tab
`[assistant] background` names an image (none by default); the server serves it at /api/bg behind the token, and the tab shows its subject from the right side, desaturated and faded out on every side so no edge shows: opacity .24 while the chat is empty, .07 during a conversation. Tuned on the 1280x800 tablet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'static/modules')
-rw-r--r--static/modules/assistant.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/static/modules/assistant.js b/static/modules/assistant.js
index 99df15b..257fb2e 100644
--- a/static/modules/assistant.js
+++ b/static/modules/assistant.js
@@ -316,6 +316,8 @@ export default {
off._offline = null;
el._busy = !!st.pending || st.state !== "idle";
+ // The backdrop shows more while the chat is empty.
+ el.querySelector(".assistant").classList.toggle("idle", !st.turns.length && !st.pending);
const model = el.querySelector(".as-model");
const cloud = st.models.some((m) => m.cloud && m.id === st.wanted);
model.querySelector("i").textContent = cloud ? G.cloud : "";