fix(ui): canvas layer select cut off

This commit is contained in:
psychedelicious 2023-12-29 08:55:22 +11:00 committed by Kent Keirsey
parent e99b715e9e
commit f4cdfa3b9c

View File

@ -1,4 +1,4 @@
import { Box, Flex } from '@chakra-ui/react'; import { Flex } from '@chakra-ui/react';
import { createMemoizedSelector } from 'app/store/createMemoizedSelector'; import { createMemoizedSelector } from 'app/store/createMemoizedSelector';
import { stateSelector } from 'app/store/store'; import { stateSelector } from 'app/store/store';
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks'; import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
@ -215,24 +215,16 @@ const IAICanvasToolbar = () => {
); );
return ( return (
<Flex <Flex alignItems="center" gap={2} flexWrap="wrap">
sx={{ <InvTooltip label={`${t('unifiedCanvas.layer')} (Q)`}>
alignItems: 'center', <InvControl isDisabled={isStaging} w="5rem">
gap: 2, <InvSelect
flexWrap: 'wrap', value={value}
}} options={LAYER_NAMES_DICT}
> onChange={handleChangeLayer}
<Box w={24}> />
<InvTooltip label={`${t('unifiedCanvas.layer')} (Q)`}> </InvControl>
<InvControl isDisabled={isStaging}> </InvTooltip>
<InvSelect
value={value}
options={LAYER_NAMES_DICT}
onChange={handleChangeLayer}
/>
</InvControl>
</InvTooltip>
</Box>
<IAICanvasMaskOptions /> <IAICanvasMaskOptions />
<IAICanvasToolChooserOptions /> <IAICanvasToolChooserOptions />