diff --git a/frontend/src/components/OverlayEditor.css b/frontend/src/components/OverlayEditor.css index 9dc4f96..f18e637 100644 --- a/frontend/src/components/OverlayEditor.css +++ b/frontend/src/components/OverlayEditor.css @@ -77,14 +77,15 @@ .ovl-empty { margin: 0; color: #9aa3b2; line-height: 1.45; } .ovl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; } .ovl-list li { - display: flex; align-items: center; gap: 8px; - padding: 4px 4px 4px 10px; border: 1px solid #262c35; border-radius: 8px; + display: flex; flex-direction: column; gap: 6px; + padding: 6px; border: 1px solid #262c35; border-radius: 8px; } +.ovl-shape-row { display: flex; align-items: center; gap: 8px; } .ovl-list li.is-active { border-color: #5eead4; } .ovl-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; } -.ovl-kind { flex: none; min-width: 5.5em; } +.ovl-kind { flex: 1; min-width: 0; } .ovl-label { - flex: 1 1 60px; min-width: 0; min-height: 40px; padding: 0 8px; + width: 100%; box-sizing: border-box; min-height: 40px; padding: 0 8px; font: inherit; color: inherit; background: #0f1216; border: 1px solid #343b47; border-radius: 6px; } @@ -126,8 +127,10 @@ is meant to wander, and straightening one silently would correct the finding instead of the drawing. */ .ovl-tidy { - flex: none; width: 30px; height: 30px; padding: 0; cursor: pointer; + flex: none; display: inline-flex; align-items: center; gap: 5px; + height: 30px; padding: 0 10px; cursor: pointer; border: 1px solid #2c3444; border-radius: 8px; - background: transparent; color: #cbd5e1; font-size: 1rem; line-height: 1; + background: transparent; color: #cbd5e1; + font: inherit; font-size: .82rem; font-weight: 600; line-height: 1; } .ovl-tidy:hover { border-color: #5eead4; color: #5eead4; } diff --git a/frontend/src/components/OverlayEditor.jsx b/frontend/src/components/OverlayEditor.jsx index 7cf2da2..724d2bf 100644 --- a/frontend/src/components/OverlayEditor.jsx +++ b/frontend/src/components/OverlayEditor.jsx @@ -397,8 +397,28 @@ export default function OverlayEditor({ src, overlay, onSave, onClose }) { onFocus={() => setActiveId(s.id)} onBlur={() => setActiveId(null)} > -