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(workbench): center the rail overflow trigger on the icon column

Josh Corbettcd98783edb49
diff --git a/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetEnableMenu.tsx b/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetEnableMenu.tsx
index 7513a820ce..7d8eee700b 100644
--- a/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetEnableMenu.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widget-frame/WidgetEnableMenu.tsx
@@ -57,6 +57,9 @@ const getWidgetEnableMenuTriggerButton = (label: string, trigger: WidgetEnableMe
return (
<Flex
align="center"
+ // The rail's strips stretch to stay full-width drop targets; the trigger
+ // is a lone fixed-size child and must center itself to line up with them.
+ alignSelf={isBottom ? undefined : 'center'}
aria-label={label}
as="button"
color="fg"