mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): add spinner to gallery progress images
- otherwise you may think you can click it but you cannot
This commit is contained in:
parent
40d4cabecd
commit
15c59e606f
@ -1,4 +1,4 @@
|
||||
import { Box, Flex, Image } from '@chakra-ui/react';
|
||||
import { Flex, Image, Spinner } from '@chakra-ui/react';
|
||||
import { createSelector } from '@reduxjs/toolkit';
|
||||
import { useAppSelector } from 'app/store/storeHooks';
|
||||
import { defaultSelectorOptions } from 'app/store/util/defaultMemoizeOptions';
|
||||
@ -42,6 +42,7 @@ const GalleryProgressImage = () => {
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
aspectRatio: '1/1',
|
||||
position: 'relative',
|
||||
}}
|
||||
>
|
||||
<Image
|
||||
@ -61,6 +62,7 @@ const GalleryProgressImage = () => {
|
||||
imageRendering: shouldAntialiasProgressImage ? 'auto' : 'pixelated',
|
||||
}}
|
||||
/>
|
||||
<Spinner sx={{ position: 'absolute', top: 1, right: 1, opacity: 0.7 }} />
|
||||
</Flex>
|
||||
);
|
||||
};
|
||||
|
@ -278,6 +278,7 @@ const HoverableImage = memo((props: HoverableImageProps) => {
|
||||
h: 'full',
|
||||
transition: 'transform 0.2s ease-out',
|
||||
aspectRatio: '1/1',
|
||||
cursor: 'pointer',
|
||||
}}
|
||||
>
|
||||
<Image
|
||||
|
Loading…
Reference in New Issue
Block a user