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
fix(canvas): give the header save split button full-size targets
Josh Corbett7f82940939b8
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/canvas/CanvasHeaderActions.tsx b/invokeai/frontend/webv2/src/workbench/widgets/canvas/CanvasHeaderActions.tsxindex fa163c2d80..bdee5f4047 100644--- a/invokeai/frontend/webv2/src/workbench/widgets/canvas/CanvasHeaderActions.tsx+++ b/invokeai/frontend/webv2/src/workbench/widgets/canvas/CanvasHeaderActions.tsx@@ -258,7 +258,7 @@ const CanvasHeaderActionsInner = ({<HeaderDivider /><Menu.Root positioning={MENU_POSITIONING}>- <Group attached>+ <Group attached css={SPLIT_GROUP_CSS}><Tooltip content={t('widgets.canvas.contextMenu.saveCanvasToGallery')}><IconButtonaria-label={t('widgets.canvas.contextMenu.saveCanvasToGallery')}@@ -279,7 +279,7 @@ const CanvasHeaderActionsInner = ({minW="0"size="2xs"variant="ghost"- w="5"+ w="6"><ChevronDownIcon size={12} /></IconButton>@@ -338,6 +338,10 @@ const CanvasHeaderActionsInner = ({};/** A thin vertical rule separating header-action groups (matching legacy's dividers). */+// Ghost buttons have no border to collapse, and the attached overlap would+// leave the save button under 24px of unobscured target.+const SPLIT_GROUP_CSS = { '& > *:not(:last-child)': { marginEnd: 0 } } as const;+const HeaderDivider = () => <Box bg="border.subtle" flexShrink={0} h="4" mx="1" w="1px" />;/** Diagnostics use an existing engine; opening settings must never acquire a canvas engine lease. */