Skip to content

Commit 209a55b

Browse files
fix(ui): canvas rescale when toggle gallery
1 parent dc2f69f commit 209a55b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

invokeai/frontend/web/src/features/gallery/components/ImageGalleryPanel.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export default function ImageGalleryPanel() {
7878

7979
const handleToggleGallery = () => {
8080
dispatch(toggleGalleryPanel());
81+
shouldPinGallery && dispatch(requestCanvasRescale());
8182
};
8283

8384
const handleCloseGallery = () => {
@@ -90,7 +91,7 @@ export default function ImageGalleryPanel() {
9091
() => {
9192
handleToggleGallery();
9293
},
93-
[shouldShowGallery, shouldPinGallery]
94+
[shouldPinGallery]
9495
);
9596

9697
useHotkeys(

0 commit comments

Comments
 (0)