refactor(street-level): static legend in markup; drop empty panel wrappers

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
German KhokhlovandClaude Opus 5.5 committed 2026-10-08 15:02:44 +04:00
1 parent 209dda5507
commit 7411ebaf1c
8 files changed
+56 -92

No files matched your search

+11 -8
View File
@@ -88,23 +88,16 @@
}
.sl-body,
.sl-main,
.sl-settings,
.sl-controls {
display: flex;
flex-direction: column;
gap: 8px;
}
.sl-body,
.sl-settings {
.sl-body {
min-height: 0;
}
.sl-main {
min-width: 0;
}
.sl-controls {
min-width: 0;
margin: 0;
@@ -222,11 +215,21 @@
color: var(--text-secondary);
}
.sl-legend[hidden] {
display: none;
}
.sl-legend-swatch {
width: 14px;
height: 3px;
border-radius: 2px;
display: inline-block;
background: var(--sl-green);
}
/* COLORS.selected in src/layers/streetLevel/policy.js */
.sl-legend-swatch.is-selected {
background: #00d4ff;
}
/* ── Embedded viewer ─────────────────────────────────────────────────────── */