Skip to content

Commit

Permalink
fix: center align side-drawer header text when back button is absent …
Browse files Browse the repository at this point in the history
…(#497)
  • Loading branch information
greatertomi authored Sep 7, 2023
1 parent 666cea6 commit 1ddd265
Showing 1 changed file with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,20 @@ export const Header = ({
justifyContent="space-between"
>
{onBackClick !== undefined && (
<NavigationButtons.Back onClick={onBackClick} />
<Flex w="$40">
<NavigationButtons.Back onClick={onBackClick} />
</Flex>
)}
<Typography.Body.Large weight="$bold" className={cx.text}>
{text}
</Typography.Body.Large>
<Close>
<NavigationButtons.Close onClick={onCloseClick} />
</Close>
<Flex justifyContent="center" w="$fill">
<Typography.Body.Large weight="$bold" className={cx.text}>
{text}
</Typography.Body.Large>
</Flex>
<Flex w="$40">
<Close>
<NavigationButtons.Close onClick={onCloseClick} />
</Close>
</Flex>
</Flex>
<Box mb="$32">
<Separator />
Expand Down

0 comments on commit 1ddd265

Please sign in to comment.