fix(web/context): Properly align text

When there was no description the key for the text wasn't properly centered vertically
This commit is contained in:
Luke
2022-04-15 11:41:06 +02:00
parent 282d81500c
commit 66694c4ce3

View File

@@ -54,6 +54,7 @@ const Item: React.FC<{
> >
<Flex <Flex
w="100%" w="100%"
alignItems="center"
onClick={() => onClick={() =>
option[1].menu option[1].menu
? openMenu(option[1].menu) ? openMenu(option[1].menu)
@@ -65,7 +66,7 @@ const Item: React.FC<{
} }
> >
<Box> <Box>
<Box paddingBottom={1}> <Box paddingBottom={option[1].description ? 1 : 0}>
<Text w="100%" fontWeight="medium"> <Text w="100%" fontWeight="medium">
{option[0]} {option[0]}
</Text> </Text>