Decreases gallery width on inpainting

This commit is contained in:
psychedelicious 2022-11-01 11:03:10 +11:00 committed by Lincoln Stein
parent b4e3f771e0
commit f6f5c2731b

View File

@ -69,9 +69,9 @@ export default function ImageGallery() {
if (!shouldPinGallery) return;
if (activeTabName === 'inpainting') {
dispatch(setGalleryWidth(220));
setGalleryMinWidth(220);
setGalleryMaxWidth(220);
dispatch(setGalleryWidth(190));
setGalleryMinWidth(190);
setGalleryMaxWidth(190);
} else if (activeTabName === 'img2img') {
dispatch(
setGalleryWidth(Math.min(Math.max(Number(galleryWidth), 0), 490))