From c6118e889895ba35a191124ce1beb5d2b719366d Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Thu, 3 Nov 2022 01:29:51 +1100 Subject: [PATCH] Address feedback - moves mask clear button - fixes intermediates - shrinks inpainting icons by 10% --- frontend/src/features/gallery/CurrentImagePreview.tsx | 10 +++++++++- frontend/src/features/tabs/Inpainting/Inpainting.scss | 4 ++++ .../features/tabs/Inpainting/InpaintingControls.tsx | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/frontend/src/features/gallery/CurrentImagePreview.tsx b/frontend/src/features/gallery/CurrentImagePreview.tsx index 279292ebb4..708361ca7f 100644 --- a/frontend/src/features/gallery/CurrentImagePreview.tsx +++ b/frontend/src/features/gallery/CurrentImagePreview.tsx @@ -30,6 +30,7 @@ export const imagesSelector = createSelector( return { imageToDisplay: intermediateImage ? intermediateImage : currentImage, + isIntermediate: intermediateImage, currentCategory, isOnFirstImage: currentImageIndex === 0, isOnLastImage: @@ -55,6 +56,7 @@ export default function CurrentImagePreview() { isOnLastImage, shouldShowImageDetails, imageToDisplay, + isIntermediate, } = useAppSelector(imagesSelector); const [shouldShowNextPrevButtons, setShouldShowNextPrevButtons] = @@ -78,7 +80,13 @@ export default function CurrentImagePreview() { return (
- {imageToDisplay && } + {imageToDisplay && ( + + )} {!shouldShowImageDetails && (
{ + -