diff --git a/apps/editor/src/ui/editor/EditorCanvas.tsx b/apps/editor/src/ui/editor/EditorCanvas.tsx index 7ebc016..94683be 100644 --- a/apps/editor/src/ui/editor/EditorCanvas.tsx +++ b/apps/editor/src/ui/editor/EditorCanvas.tsx @@ -1736,7 +1736,9 @@ export default function EditorCanvas({ onBack, onSaveToServer, onArchiveFramewor tenantId={tenantId ?? undefined} onChangePassword={authStatus === 'authenticated' && changePassword ? () => void changePassword() : undefined} reserveRightForPanel={sidePanelOpen} - showSettings + // Settings menu is canvas-only (edge style, view switching), so it's + // hidden while Tree View is the only view (see featureFlags.ts). + showSettings={CANVAS_VIEW_ENABLED} isDirty={isDirty} saveStatus={saveStatus} saveError={saveError} @@ -1757,7 +1759,7 @@ export default function EditorCanvas({ onBack, onSaveToServer, onArchiveFramewor } : undefined } - onOpenSettings={() => setSettingsOpen(true)} + onOpenSettings={CANVAS_VIEW_ENABLED ? () => setSettingsOpen(true) : undefined} onResetHierarchy={CANVAS_VIEW_ENABLED ? () => { setActiveView('canvas'); applyHierarchyLayout() } : undefined} onResetStar={CANVAS_VIEW_ENABLED ? () => { setActiveView('canvas'); applyStarLayout() } : undefined} onSwitchTreeView={CANVAS_VIEW_ENABLED ? () => setActiveView(activeView === 'tree' ? 'canvas' : 'tree') : undefined} @@ -1939,12 +1941,13 @@ export default function EditorCanvas({ onBack, onSaveToServer, onArchiveFramewor }} /> - setSettingsOpen(false)} onSave={updateSettings} - /> + /> : null} {showBrowsePanel ? (