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>
This commit is contained in:
Ouroboros 2026-09-13 23:54:34 +03:00
parent 75b94cfc0d
commit 5270f88319
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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 {