feat: make Web UI mood dropdowns Evil Mode-aware

- Disable per-server mood controls when Evil Miku is active
- Show explanatory notice for disabled server mood dropdowns
- Populate global mood dropdown with evil moods when Evil Mode is on
- Fix initialization race condition by awaiting evil mode status first
- Add CSS styles for disabled mood controls
This commit is contained in:
2026-05-18 21:43:44 +03:00
parent 27f0659cc8
commit 7cb21a372b
4 changed files with 112 additions and 28 deletions

View File

@@ -915,3 +915,20 @@ body.evil-mode [style*="color: rgb(0, 123, 255)"] {
color: #888;
margin-left: auto;
}
/* Disabled mood controls (Evil Miku per-server mood lockout) */
.server-mood-controls select:disabled,
.server-mood-controls button:disabled {
opacity: 0.4;
cursor: not-allowed;
pointer-events: none;
background: #2a2a2a;
border-color: #444;
}
.evil-mode-exempt-notice {
color: #888;
font-size: 0.85rem;
font-style: italic;
margin-top: 0.5rem;
line-height: 1.4;
}