Skip to content

Commit 95ac819

Browse files
experiment(ui): toggle dockview simple vs advanced layout
1 parent 81363b9 commit 95ac819

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

invokeai/frontend/web/src/features/ui/components/AppContent.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { useStore } from '@nanostores/react';
66
import { useAppSelector } from 'app/store/storeHooks';
77
import type { DockviewApi } from 'dockview';
88
import { useDndMonitor } from 'features/dnd/useDndMonitor';
9+
import { DockviewWrapper } from 'features/ui/components/DockviewWrapper';
910
import { GridviewWrapper } from 'features/ui/components/GridviewWrapper';
1011
import { VerticalNavBar } from 'features/ui/components/VerticalNavBar';
1112
import { selectActiveTab } from 'features/ui/store/uiSelectors';
@@ -80,7 +81,7 @@ export const AppContent = memo(() => {
8081
defaultTabComponent={MyCustomTab}
8182
rightHeaderActionsComponent={RightHeaderActions}
8283
/> */}
83-
<GridviewWrapper />
84+
{advancedLayout ? <DockviewWrapper /> : <GridviewWrapper />}
8485
{/* <PanelGroup
8586
ref={imperativePanelGroupRef}
8687
id="app-panel-group"

invokeai/frontend/web/src/features/ui/components/dockview_theme_invoke.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,7 @@
6363
/* this is the tab divider */
6464
background-color: var(--dv-inactivegroup-tab-divider-color);
6565
}
66+
67+
.dv-active-group .dv-active-tab .dv-default-tab-content {
68+
/* style the action tab content e.g. its title */
69+
}

0 commit comments

Comments
 (0)