fix(ui): Current Image Buttons position

This commit is contained in:
blessedcoolant 2023-04-27 15:12:44 +12:00 committed by psychedelicious
parent a824f47bc6
commit db16ca0079

View File

@ -60,17 +60,24 @@ const CurrentImageDisplay = () => {
}} }}
> >
<Flex <Flex
flexDirection="column"
sx={{ sx={{
w: 'full', w: 'full',
h: 'full', h: 'full',
alignItems: 'center', alignItems: 'center',
justifyContent: 'center',
gap: 4, gap: 4,
}} }}
> >
<CurrentImageButtons />
{hasAnImageToDisplay ? ( {hasAnImageToDisplay ? (
<CurrentImagePreview /> <CurrentImagePreview />
) : ( ) : (
<Flex
width="full"
height="full"
alignItems="center"
justifyContent="center"
>
<Icon <Icon
as={MdPhoto} as={MdPhoto}
sx={{ sx={{
@ -78,11 +85,9 @@ const CurrentImageDisplay = () => {
color: 'base.500', color: 'base.500',
}} }}
/> />
</Flex>
)} )}
</Flex> </Flex>
<Box sx={{ position: 'absolute', top: 0 }}>
<CurrentImageButtons />
</Box>
</Flex> </Flex>
); );
}; };