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(canvas): anchor new session menu

joshistoastbd1cc55ed361
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/CanvasHeaderActions.tsx b/invokeai/frontend/webv2/src/workbench/widgets/canvas/CanvasHeaderActions.tsx
index 9db494ded8..a6be453a01 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/CanvasHeaderActions.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/CanvasHeaderActions.tsx
@@ -230,11 +230,18 @@ const CanvasHeaderActionsInner = ({
<Menu.Root positioning={MENU_POSITIONING}>
<Tooltip content={t('widgets.canvas.controls.newSession')}>
- <Menu.Trigger asChild>
- <IconButton color="fg.muted" size="2xs" variant="ghost">
- <FilePlusIcon />
- </IconButton>
- </Menu.Trigger>
+ <span style={{ display: 'inline-flex' }}>
+ <Menu.Trigger asChild>
+ <IconButton
+ aria-label={t('widgets.canvas.controls.newSession')}
+ color="fg.muted"
+ size="2xs"
+ variant="ghost"
+ >
+ <FilePlusIcon />
+ </IconButton>
+ </Menu.Trigger>
+ </span>
</Tooltip>
<Portal>
<Menu.Positioner>