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(webv2): contain center gallery grid
joshistoastf09ee861c9f3
diff --git a/invokeai/frontend/webv2/src/features/gallery/ui/GalleryImageGrid.tsx b/invokeai/frontend/webv2/src/features/gallery/ui/GalleryImageGrid.tsxindex 11366ba395..f92b0ecbf2 100644--- a/invokeai/frontend/webv2/src/features/gallery/ui/GalleryImageGrid.tsx+++ b/invokeai/frontend/webv2/src/features/gallery/ui/GalleryImageGrid.tsx@@ -277,6 +277,7 @@ export const GalleryImageGrid = () => {<Boxref={syncRangeInteractionContext}flex="1"+ h="full"maxW="full"minH="0"minW="0"diff --git a/invokeai/frontend/webv2/src/features/gallery/ui/GalleryLayout.browser.test.tsx b/invokeai/frontend/webv2/src/features/gallery/ui/GalleryLayout.browser.test.tsxindex f21e6cff52..2f4ed62151 100644--- a/invokeai/frontend/webv2/src/features/gallery/ui/GalleryLayout.browser.test.tsx+++ b/invokeai/frontend/webv2/src/features/gallery/ui/GalleryLayout.browser.test.tsx@@ -166,6 +166,23 @@ afterEach(async () => {});describe('gallery layout shells', () => {+ it('keeps the center gallery scroll area above the selection actions', async () => {+ const items = Array.from({ length: 80 }, (_, index) => createItem(`image-${index}.png`));++ setGallery(createGallery({ items }));+ await renderLayout(GalleryWideLayout);++ const list = host?.querySelector<HTMLElement>('[role="list"]');+ const viewport = list?.closest<HTMLElement>('[data-part="viewport"]');+ const selectionActions = host?.querySelector<HTMLElement>('[role="toolbar"]');++ if (!viewport || !selectionActions) {+ throw new Error('gallery viewport or selection actions did not render');+ }++ expect(viewport.getBoundingClientRect().bottom).toBeLessThanOrEqual(selectionActions.getBoundingClientRect().top);+ });+it('keeps a long board list inside the board panel instead of spilling it over the grid', async () => {const boards = Array.from({ length: 40 }, (_, index) => ({...board,