Skip to content

Commit

Permalink
fix(web/menu): fix misalignment on the list buttons in the menu
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeWasTakenn committed Sep 9, 2022
1 parent ff7a0b6 commit 5d4eff8
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions web/src/features/menu/list/ListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,21 @@ const ListItem = forwardRef<Array<HTMLDivElement | null>, Props>(({ item, index,
return (ref.current = [...ref.current, element]);
}}
>
<Flex alignItems="center" height="100%">
<Flex alignItems="center" height="100%" gap="20px">
{item.icon && (
<FontAwesomeIcon
icon={item.icon}
fontSize={24}
color="#909296"
fixedWidth
style={{ marginRight: 20, marginLeft: 5 }}
/>
<Box>
<FontAwesomeIcon icon={item.icon} fontSize={24} color="#909296" fixedWidth />
</Box>
)}
{Array.isArray(item.values) ? (
<Flex justifyContent="center" alignItems="center" width="100%">
<Stack spacing={1}>
<Flex alignItems="center" justifyContent="space-between" w="100%">
<Stack spacing={1} justifyContent="space-between">
<Text color="#909296" textTransform="uppercase" fontSize={12} verticalAlign="middle">
{item.label}
</Text>
<Text>{item.values[scrollIndex]}</Text>
</Stack>
<Spacer />
<Stack direction="row" spacing="sm" mr={3} justifyContent="center" alignItems="center">
<Stack direction="row" spacing="sm" pr={3} justifyContent="center" alignItems="center">
<FontAwesomeIcon icon="chevron-left" fontSize={16} color="#909296" />
<Text color="#909296" textTransform="uppercase" fontSize={14}>
{scrollIndex + 1}/{item.values.length}
Expand Down

0 comments on commit 5d4eff8

Please sign in to comment.