diff --git a/invokeai/frontend/web/src/features/gallery/components/ImageGalleryPanel.tsx b/invokeai/frontend/web/src/features/gallery/components/ImageGalleryPanel.tsx index 8b06ed4ebe..6c574f2be3 100644 --- a/invokeai/frontend/web/src/features/gallery/components/ImageGalleryPanel.tsx +++ b/invokeai/frontend/web/src/features/gallery/components/ImageGalleryPanel.tsx @@ -78,6 +78,7 @@ export default function ImageGalleryPanel() { const handleToggleGallery = () => { dispatch(toggleGalleryPanel()); + shouldPinGallery && dispatch(requestCanvasRescale()); }; const handleCloseGallery = () => { @@ -90,7 +91,7 @@ export default function ImageGalleryPanel() { () => { handleToggleGallery(); }, - [shouldShowGallery, shouldPinGallery] + [shouldPinGallery] ); useHotkeys(