From 25c0248a3285c30b12df9d228a13e435786b66f7 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 10 Nov 2026 16:27:11 +0100 Subject: feat(assistant): a greeting while the chat is empty Co-Authored-By: Claude Opus 5.5 --- static/deck.css | 11 +++++++++++ static/modules/assistant.js | 5 +++++ 2 files changed, 16 insertions(+) (limited to 'static') diff --git a/static/deck.css b/static/deck.css index 3c45e98..03b9d43 100644 --- a/static/deck.css +++ b/static/deck.css @@ -702,3 +702,14 @@ select { } .assistant.idle::before { opacity: .24; } .assistant > * { position: relative; z-index: 1; } + +/* The empty chat's greeting, on the side the backdrop leaves free. */ +.assistant .as-hello { + display: none; position: absolute; left: 4%; top: 30%; max-width: 46%; + flex-direction: column; gap: 8px; pointer-events: none; +} +.assistant.idle .as-hello { display: flex; } +.assistant .as-hello h2 { + margin: 0 0 6px; font: 200 3rem/1.1 system-ui, sans-serif; letter-spacing: -.02em; color: var(--udt-text); +} +.assistant .as-hello p { margin: 0; font: 300 1.15rem/1.4 system-ui, sans-serif; color: var(--udt-overlay0); } diff --git a/static/modules/assistant.js b/static/modules/assistant.js index 257fb2e..0384dc5 100644 --- a/static/modules/assistant.js +++ b/static/modules/assistant.js @@ -264,6 +264,11 @@ export default { +
-- cgit v1.2.3