From 32406e5a20a5ee5cd627630a277c4d0b3ed9b124 Mon Sep 17 00:00:00 2001 From: wass08 Date: Wed, 11 Mar 2026 07:39:45 +0100 Subject: [PATCH] enhance hover zone --- .../components/systems/zone/zone-label-editor-system.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/editor/components/systems/zone/zone-label-editor-system.tsx b/apps/editor/components/systems/zone/zone-label-editor-system.tsx index 33881f0e..ccca379a 100644 --- a/apps/editor/components/systems/zone/zone-label-editor-system.tsx +++ b/apps/editor/components/systems/zone/zone-label-editor-system.tsx @@ -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,