Add EntitySelect/IconSelect UI improvements across modals

- Portal IconSelect popups to document.body with position:fixed to prevent
  clipping by modal overflow-y:auto
- Replace custom scene selectors in automation editor with EntitySelect
  command-palette pickers (main scene + fallback scene)
- Add IconSelect grid for automation deactivation mode (none/revert/fallback)
- Add IconSelect grid for automation condition type and match type
- Replace mapped zone source dropdowns with EntitySelect pickers
- Replace scene target selector with EntityPalette.pick() pattern
- Remove effect palette preview bar from CSS editor
- Remove sensitivity badge from audio color strip source cards
- Clean up unused scene-selector CSS and scene-target-add-row CSS
- Add locale keys for all new UI elements across en/ru/zh

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-09 16:00:30 +03:00
parent 186940124c
commit 2712c6682e
32 changed files with 1204 additions and 391 deletions
@@ -174,103 +174,6 @@
text-align: center;
}
/* Scene selector (searchable combobox) */
.scene-selector {
position: relative;
}
.scene-selector-input-wrap {
display: flex;
align-items: center;
border: 1px solid var(--border-color);
border-radius: 4px;
background: var(--bg-color);
overflow: hidden;
}
.scene-selector-input {
flex: 1;
padding: 6px 8px;
border: none;
background: transparent;
color: var(--text-color);
font-size: 0.9rem;
font-family: inherit;
outline: none;
}
.scene-selector-clear {
background: none;
border: none;
color: var(--text-muted);
font-size: 1.1rem;
cursor: pointer;
padding: 4px 8px;
line-height: 1;
display: none;
}
.scene-selector-clear.visible {
display: block;
}
.scene-selector-clear:hover {
color: var(--danger-color, #dc3545);
}
.scene-selector-dropdown {
display: none;
position: absolute;
top: 100%;
left: 0;
right: 0;
z-index: 100;
max-height: 200px;
overflow-y: auto;
border: 1px solid var(--border-color);
border-top: none;
border-radius: 0 0 4px 4px;
background: var(--bg-color);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.scene-selector-dropdown.open {
display: block;
}
.scene-selector-item {
padding: 6px 10px;
font-size: 0.85rem;
cursor: pointer;
display: flex;
align-items: center;
gap: 6px;
transition: background 0.1s;
}
.scene-selector-item:hover {
background: rgba(33, 150, 243, 0.15);
}
.scene-selector-item.selected {
background: rgba(33, 150, 243, 0.2);
font-weight: 600;
}
.scene-selector-item .scene-color-dot {
width: 10px;
height: 10px;
border-radius: 50%;
flex-shrink: 0;
}
.scene-selector-empty {
padding: 8px 10px;
font-size: 0.85rem;
color: var(--text-muted);
text-align: center;
}
/* Webhook URL row */
.webhook-url-row {
display: flex;
@@ -450,3 +450,4 @@
color: var(--text-secondary);
margin-top: 8px;
}
@@ -443,13 +443,6 @@ textarea:focus-visible {
.endpoint-label { display: block; font-weight: 600; margin-bottom: 2px; opacity: 0.7; font-size: 0.8em; }
/* Scene target selector */
.scene-target-add-row {
display: flex;
gap: 6px;
margin-bottom: 8px;
}
.scene-target-add-row select { flex: 1; }
.scene-target-add-row .btn { padding: 4px 10px; min-width: 0; flex: 0 0 auto; font-size: 0.85rem; }
.scene-target-list {
display: flex;
flex-direction: column;
@@ -510,7 +503,8 @@ textarea:focus-visible {
}
.icon-select-popup {
position: relative;
position: fixed;
z-index: 10000;
max-height: 0;
overflow: hidden;
opacity: 0;
@@ -760,14 +760,6 @@
/* ── Gradient editor ────────────────────────────────────────────── */
.effect-palette-preview {
width: 100%;
height: 20px;
border-radius: 6px;
margin-top: 6px;
border: 1px solid var(--border-color);
}
.gradient-editor {
position: relative;
width: 100%;