Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
style(workbench): tighten workspace layout
joshistoast137558ba8f6a
diff --git a/invokeai/frontend/webv2/src/workbench/launchpad/LaunchpadNav.tsx b/invokeai/frontend/webv2/src/workbench/launchpad/LaunchpadNav.tsxindex 61dc790b16..fbbfc25e1f 100644--- a/invokeai/frontend/webv2/src/workbench/launchpad/LaunchpadNav.tsx+++ b/invokeai/frontend/webv2/src/workbench/launchpad/LaunchpadNav.tsx@@ -36,7 +36,7 @@ export const LaunchpadNav = ({ items }: { items: LaunchpadNavItem[] }) => (w={NAV_WIDTH}>{items.length > 1 ? (- <Tabs.List flexShrink={0}>+ <Tabs.List flexShrink={0} gap="0.5">{items.map((item) => (<Tabs.Trigger key={item.id} value={item.id}><Icon as={item.icon} boxSize="3.5" flexShrink={0} />diff --git a/invokeai/frontend/webv2/src/workbench/projects/components/ProjectTabs.tsx b/invokeai/frontend/webv2/src/workbench/projects/components/ProjectTabs.tsxindex bdacc7ce1f..338e86437e 100644--- a/invokeai/frontend/webv2/src/workbench/projects/components/ProjectTabs.tsx+++ b/invokeai/frontend/webv2/src/workbench/projects/components/ProjectTabs.tsx@@ -158,7 +158,7 @@ export const ProjectTabs = () => {<ScrollArea.Root css={TAB_STRIP_CONTAIN_CSS} flex="1 1 auto" minW="0" h="full" size="xs" variant="hover"><ScrollArea.Viewport aria-label={t('projects.openProjects')} h="full" w="full"><ScrollArea.Content asChild>- <Flex align="center" h="full">+ <Flex align="center" h="full" gap="1">{projectTabSummaries.map((project) => (<ProjectTabkey={project.id}diff --git a/invokeai/frontend/webv2/src/workbench/shell/CenterArea.tsx b/invokeai/frontend/webv2/src/workbench/shell/CenterArea.tsxindex d93013dc01..22724830bf 100644--- a/invokeai/frontend/webv2/src/workbench/shell/CenterArea.tsx+++ b/invokeai/frontend/webv2/src/workbench/shell/CenterArea.tsx@@ -190,7 +190,7 @@ export const CenterArea = ({ dropState }: { dropState: WidgetRegionDropState })strategy={horizontalListSortingStrategy}onContextMenu={openEnableMenu}>- <Tabs.Root value={activeCenterViewId} h="full" w="full" onValueChange={handleCenterTabChange}>+ <Tabs.Root value={activeCenterViewId} h="full" onValueChange={handleCenterTabChange}><Tabs.List>{centerViewItems.map((item) => (<SortableCenterTab@@ -204,8 +204,6 @@ export const CenterArea = ({ dropState }: { dropState: WidgetRegionDropState })</Tabs.List></Tabs.Root>- <Box flex="1" />-{centerToolbarItems.map((item) => (<Flex key={item.id} align="center" h="full"><WidgetRendererById instanceId={item.id} widget={item.widget} presentation="compact" region="center" />diff --git a/invokeai/frontend/webv2/src/workbench/shell/StatusBar.tsx b/invokeai/frontend/webv2/src/workbench/shell/StatusBar.tsxindex 160dd799a2..705a94ff19 100644--- a/invokeai/frontend/webv2/src/workbench/shell/StatusBar.tsx+++ b/invokeai/frontend/webv2/src/workbench/shell/StatusBar.tsx@@ -36,7 +36,7 @@ const BOTTOM_MENU_POSITIONING = { placement: 'top-end' } as const;const BOTTOM_MENU_TRIGGER = { kind: 'bottom' } as const;const COMPACT_ROW_HOVER_PROPS = { color: 'fg' };const COMPACT_ROW_ACTIVE_HOVER_PROPS = { color: 'accent.contrast' };-const TOOLTIP_POSITIONING = { placement: 'top-start' } as const;+const TOOLTIP_POSITIONING = { placement: 'top' } as const;export const StatusBar = ({ dropState }: { dropState: WidgetRegionDropState }) => {const { t } = useTranslation();@@ -128,8 +128,6 @@ export const StatusBar = ({ dropState }: { dropState: WidgetRegionDropState }) =/>))}- <Box flex="1" />-<WidgetEnableMenucontextTarget={enableMenuTarget}groupLabel="Bottom Widgets"diff --git a/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetBar.tsx b/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetBar.tsxindex fb9fa7356b..951a269556 100644--- a/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetBar.tsx+++ b/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetBar.tsx@@ -85,11 +85,11 @@ export const WidgetBar = ({direction="column"dropState={dropState}flexShrink={0}- pt="1.5"+ pt="1"region={region}sortableInstanceIds={sortableInstanceIds}strategy={verticalListSortingStrategy}- w="12"+ w="11"onContextMenu={openEnableMenu}>{railItems.map((item) => (@@ -104,18 +104,16 @@ export const WidgetBar = ({/>))}- <Box mt="1.5">- <WidgetEnableMenu- contextTarget={enableMenuTarget}- groupLabel={t('widgets.groupLabel')}- items={menuItems}- positioning={positioning}- trigger={trigger}- triggerLabel={t('widgets.visibilityLabel', { region: region === 'left' ? 'Left' : 'Right' })}- onContextClose={handleContextClose}- onToggle={handleMenuToggle}- />- </Box>+ <WidgetEnableMenu+ contextTarget={enableMenuTarget}+ groupLabel={t('widgets.groupLabel')}+ items={menuItems}+ positioning={positioning}+ trigger={trigger}+ triggerLabel={t('widgets.visibilityLabel', { region: region === 'left' ? 'Left' : 'Right' })}+ onContextClose={handleContextClose}+ onToggle={handleMenuToggle}+ /><WidgetInstanceContextMenutarget={instanceMenuTarget}@@ -176,7 +174,7 @@ const WidgetSlot = ({return (<Tooltip showArrow closeDelay={80} content={tooltipLabel} openDelay={250} positioning={positioning}>- <Box ref={setNodeRef} pb="1.5" style={style}>+ <Box ref={setNodeRef} pb="1" style={style}><Row{...dragHandleProps}css={WIDGET_ITEM_SX}diff --git a/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetFrames.tsx b/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetFrames.tsxindex 53e060dee5..7c06d76525 100644--- a/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetFrames.tsx+++ b/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetFrames.tsx@@ -231,7 +231,7 @@ export const WidgetHeader = ({</Text>)}</HStack>- <HStack flexShrink={0} gap="1.5">+ <HStack flexShrink={0} gap="0.5">{actions}{manifest.settingsSection ? (<Tooltip content={t('widgets.settingsLabel', { label })}>diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/CanvasHeaderActions.tsx b/invokeai/frontend/webv2/src/workbench/widgets/canvas/CanvasHeaderActions.tsxindex 13e9f4c92d..4179c0b7fb 100644--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/CanvasHeaderActions.tsx+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/CanvasHeaderActions.tsx@@ -153,6 +153,7 @@ const CanvasHeaderActionsInner = ({openNewCanvas();}});+useEffect(() => {const entries = [['canvas.fitBboxToLayers', t('widgets.canvas.controls.fitBboxToLayers'), ['shift+n']],diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/checkerColors.ts b/invokeai/frontend/webv2/src/workbench/widgets/canvas/checkerColors.tsindex fa4e1320b3..e579b54f91 100644--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/checkerColors.ts+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/checkerColors.ts@@ -20,8 +20,8 @@ import { type CheckerColors, DEFAULT_CHECKER_COLORS } from '@workbench/canvas-en* `bg.emphasized` are two adjacent neutral surfaces, giving a low-contrast checker* that reads as "empty" in every theme (light and dark) without a bespoke pair.*/-export const CHECKER_TOKEN_A = 'bg.subtle';-export const CHECKER_TOKEN_B = 'bg.emphasized';+export const CHECKER_TOKEN_A = 'bg.inset';+export const CHECKER_TOKEN_B = 'bg.subtle';/** The `var(--chakra-colors-…)` reference for a semantic color token, or `null` if unknown. */const cssVarRef = (token: string): string | null => {diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/TextOptions.tsx b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/TextOptions.tsxindex 350ff15ca3..e2e2eb9ea4 100644--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/TextOptions.tsx+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/tool-options/TextOptions.tsx@@ -208,6 +208,7 @@ export const TextOptions = ({ engine }: ToolOptionsComponentProps) => {/><NumberInput.Root+ flexShrink={0}max={MAX_TEXT_FONT_SIZE}min={MIN_TEXT_FONT_SIZE}size="xs"@@ -231,6 +232,7 @@ export const TextOptions = ({ engine }: ToolOptionsComponentProps) => {/><NumberInput.Root+ flexShrink={0}max={4}min={0.5}size="xs"diff --git a/invokeai/frontend/webv2/src/workbench/widgets/layers/LayerGroupSection.tsx b/invokeai/frontend/webv2/src/workbench/widgets/layers/LayerGroupSection.tsxindex b5165b8d7f..eb4435900d 100644--- a/invokeai/frontend/webv2/src/workbench/widgets/layers/LayerGroupSection.tsx+++ b/invokeai/frontend/webv2/src/workbench/widgets/layers/LayerGroupSection.tsx@@ -156,7 +156,7 @@ export const LayerGroupSection = ({onDragEnd={handleDragEnd}><SortableContext items={groupIds} strategy={verticalListSortingStrategy}>- <Stack gap="0.5">+ <Stack gap="0.5" px="1">{groupLayers.map((layer) => (<LayerListItemkey={layer.id}diff --git a/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersWidgetView.tsx b/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersWidgetView.tsxindex 3b0d483b0c..ceb2c26218 100644--- a/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersWidgetView.tsx+++ b/invokeai/frontend/webv2/src/workbench/widgets/layers/LayersWidgetView.tsx@@ -43,7 +43,7 @@ export const LayersWidgetView = () => {}, []);return (- <Stack gap="3" h="full">+ <Stack h="full"><LayersPanelHeader />{groups.length === 0 ? (<Flexdiff --git a/invokeai/frontend/webv2/src/workbench/widgets/preview/PreviewWidgetView.tsx b/invokeai/frontend/webv2/src/workbench/widgets/preview/PreviewWidgetView.tsxindex 74f624236d..fdd5cfcb23 100644--- a/invokeai/frontend/webv2/src/workbench/widgets/preview/PreviewWidgetView.tsx+++ b/invokeai/frontend/webv2/src/workbench/widgets/preview/PreviewWidgetView.tsx@@ -712,7 +712,7 @@ const SelectedImagePreview = ({[actionImage?.boardId, image.imageName]);return (- <Stack gap="3" h="full" minH="0" w="full">+ <Stack gap="2" h="full" minH="0" w="full"><PreviewFramedragImage={dragImage}frameHeight={previewHeight}