From 5270f8831982417edb9a36cced1a977f87929d27 Mon Sep 17 00:00:00 2001 From: Ouroboros <311266734+ouroboros-agent@users.noreply.github.com> Date: Sun, 13 Sep 2026 23:54:34 +0300 Subject: [PATCH] Fix Nano active color token Use a self-contained purple literal for the Nano context control so the active state renders without an undeclared CSS variable. Co-authored-by: Ouroboros <311266734+ouroboros-agent@users.noreply.github.com> --- tests/test_nano_ui_static.py | 2 ++ web/style.css | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_nano_ui_static.py b/tests/test_nano_ui_static.py index a8d10013f..6ac8d9f27 100644 --- a/tests/test_nano_ui_static.py +++ b/tests/test_nano_ui_static.py @@ -23,4 +23,6 @@ def test_chat_control_ids_match_instance_wiring_and_nano_has_active_style(): assert "const swarmBtn = byId('swarm');" in chat assert "const contextModeBtn = byId('context-mode');" in chat assert '.chat-context-mode[data-context-mode="nano"] .chat-seg[data-mode="nano"]' in styles + assert 'color: #c084fc;' in styles + assert 'var(--purple' not in styles assert 'justify-content: center;' in styles diff --git a/web/style.css b/web/style.css index 54fc2acc2..3a2a508d0 100644 --- a/web/style.css +++ b/web/style.css @@ -3108,7 +3108,7 @@ textarea.chat-input::placeholder { color: var(--text-muted); } } .chat-context-mode[data-context-mode="nano"] .chat-seg[data-mode="nano"] { background: rgba(168, 85, 247, 0.18); - color: var(--purple, #c084fc); + color: #c084fc; } .chat-send-group {