enhance hover zone

This commit is contained in:
wass08
2026-03-11 07:47:10 +01:00
parent 6719f34a89
commit 32406e5a20
@@ -29,13 +29,11 @@ function ZoneLabelEditor({ zoneId }: { zoneId: ZoneNode['id'] }) {
const el = document.getElementById(`${zoneId}-label`)
if (!el) return
setLabelEl(el)
el.style.pointerEvents = 'auto'
const textEl = el.children[0] as HTMLElement | undefined
if (textEl) textEl.style.display = 'none'
return () => {
el.style.pointerEvents = ''
if (textEl) textEl.style.display = ''
}
}, [zoneId])
@@ -79,6 +77,7 @@ function ZoneLabelEditor({ zoneId }: { zoneId: ZoneNode['id'] }) {
fontSize: 14,
fontFamily: 'sans-serif',
userSelect: 'none',
pointerEvents: 'auto',
display: 'inline-flex',
alignItems: 'center',
gap: 4,