mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-01 03:01:13 -04:00
fix(ui): canvas rescale when toggle gallery
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user