Revert "Restore inline zone label editing on canvas (#134)"

This reverts commit 036344d705.
This commit is contained in:
Wassim SAMAD
2026-03-06 13:04:52 +01:00
committed by GitHub
parent 036344d705
commit e0d97df8c8
7 changed files with 26 additions and 215 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ export default function Editor({ projectId }: EditorProps) {
<AppSidebar />
</SidebarProvider>
<ErrorBoundary key={projectId} fallback={<EditorSceneCrashFallback />}>
<Viewer selectionManager="custom" allowZoneLabelEditing>
<Viewer selectionManager="custom">
<SelectionManager />
<FloatingActionMenu />
<ExportManager />
@@ -30,14 +30,10 @@ export const ZoneSystem = () => {
// Hide label if zone layer is off OR if in solo mode on a different level
const showLabel = visible && !hideInSoloMode
const targetOpacity = showLabel ? '1' : '0'
const targetPointerEvents = showLabel ? 'auto' : 'none'
const labelEl = document.getElementById(`${zoneId}-label`)
if (labelEl && labelEl.style.opacity !== targetOpacity) {
labelEl.style.opacity = targetOpacity
}
if (labelEl && labelEl.style.pointerEvents !== targetPointerEvents) {
labelEl.style.pointerEvents = targetPointerEvents
}
})
})