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