Skip to content

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.

fix(webv2): topbar spacing and sizing tweaks

joshistoastbddce4d5b2af
diff --git a/invokeai/frontend/webv2/src/workbench/shell/topbar/AppMenu.tsx b/invokeai/frontend/webv2/src/workbench/shell/topbar/AppMenu.tsx
index 6ddb9d2320..26ed9c20f9 100644
--- a/invokeai/frontend/webv2/src/workbench/shell/topbar/AppMenu.tsx
+++ b/invokeai/frontend/webv2/src/workbench/shell/topbar/AppMenu.tsx
@@ -57,16 +57,7 @@ export const AppMenu = () => {
return (
<Menu.Root positioning={MENU_POSITIONING}>
<Menu.Trigger asChild>
- <IconButton
- aria-label={t('topbar.appMenu.open')}
- className="group"
- ms="-1.5"
- pe="1"
- ps="0"
- size="xs"
- variant="ghost"
- w="auto"
- >
+ <IconButton aria-label={t('topbar.appMenu.open')} className="group" pe="1.5" size="xs" variant="ghost">
<AppMenuGlyph />
</IconButton>
</Menu.Trigger>
@@ -141,10 +132,7 @@ const CHEVRON_HOVER_PROPS = { color: 'fg' } as const;
const AppMenuGlyph = () => (
<HStack gap="0" role="presentation">
- {/* The mark slot is exactly as wide as the widget rail below (w="11"),
- and the trigger's ms="-1.5" cancels the top bar's padding, so the mark
- centers on the rail's icon column; the chevron flows out to the right. */}
- <Box alignItems="center" display="flex" justifyContent="center" w="11">
+ <Box alignItems="center" display="flex" justifyContent="center" w="8">
<InvokeMark size={14} />
</Box>
<Icon
diff --git a/invokeai/frontend/webv2/src/workbench/shell/topbar/QueueCluster.tsx b/invokeai/frontend/webv2/src/workbench/shell/topbar/QueueCluster.tsx
index a24b8cb560..2f0ee8941f 100644
--- a/invokeai/frontend/webv2/src/workbench/shell/topbar/QueueCluster.tsx
+++ b/invokeai/frontend/webv2/src/workbench/shell/topbar/QueueCluster.tsx
@@ -105,7 +105,7 @@ export const QueueCluster = () => {
<IconButton
aria-label={cancelCurrent.label}
color="fg.error"
- size="sm"
+ size="xs"
variant="outline"
onClick={cancelCurrent.onClick}
>
diff --git a/invokeai/frontend/webv2/src/workbench/shell/topbar/TopBar.tsx b/invokeai/frontend/webv2/src/workbench/shell/topbar/TopBar.tsx
index b7e61800b6..b1b284d688 100644
--- a/invokeai/frontend/webv2/src/workbench/shell/topbar/TopBar.tsx
+++ b/invokeai/frontend/webv2/src/workbench/shell/topbar/TopBar.tsx
@@ -1,4 +1,4 @@
-import { Grid, HStack, Separator } from '@chakra-ui/react';
+import { Grid, HStack } from '@chakra-ui/react';
import { SettingsDialogHost } from '@workbench/settings/SettingsDialogHost';
import { AppMenu } from './AppMenu';
@@ -39,9 +39,8 @@ export const TopBar = () => (
px="1.5"
w="full"
>
- <HStack gap="1" minW="0">
+ <HStack gap="0.5" minW="0">
<AppMenu />
- <Separator borderColor="border.subtle" h="5" orientation="vertical" />
<ProjectSwitcher />
</HStack>