mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 23:46:03 +01:00
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:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user