mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): canvas rescale when toggle gallery
This commit is contained in:
parent
dc2f69f5d1
commit
209a55b681
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user