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(preview): keep "show all previews" clear of the center chrome

Josh Corbett12cb7b94c0b6
diff --git a/invokeai/frontend/webv2/src/workbench/widgets/preview/PreviewWidgetView.tsx b/invokeai/frontend/webv2/src/workbench/widgets/preview/PreviewWidgetView.tsx
index b00370e816..5ce27f901e 100644
--- a/invokeai/frontend/webv2/src/workbench/widgets/preview/PreviewWidgetView.tsx
+++ b/invokeai/frontend/webv2/src/workbench/widgets/preview/PreviewWidgetView.tsx
@@ -599,6 +599,10 @@ export const PreviewWidgetView = ({ region, runtime }: WidgetViewProps) => {
ref={overviewButtonRef}
alignSelf="start"
flexShrink={0}
+ // Clears the centre region's floating header islands, which
+ // otherwise sit on top of the first row of the widget body.
+ ms="2"
+ mt="var(--wb-center-chrome-inset, 0px)"
size="2xs"
variant="ghost"
onClick={livePreview.showAll}