Skip to content

Commit

Permalink
feat: move flyover close button to the right (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
renemennab authored May 14, 2024
1 parent b748fcb commit b251e7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Flyover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const FlyoverContentSC = styled.div<{

const FlyoverHeaderWrapSC = styled.div(({ theme }) => ({
alignItems: 'center',
justifyContent: 'start',
justifyContent: 'space-between',
gap: theme.spacing.small,
height: 56,
borderBottom: `1px solid ${theme.colors.border}`,
Expand Down Expand Up @@ -132,6 +132,7 @@ function FlyoverRef(
>
{!!header && (
<FlyoverHeaderWrapSC ref={ref}>
<FlyoverHeaderSC>{header}</FlyoverHeaderSC>
<IconFrame
textValue=""
display="flex"
Expand All @@ -140,7 +141,6 @@ function FlyoverRef(
onClick={onClose}
icon={<CloseIcon />}
/>
<FlyoverHeaderSC>{header}</FlyoverHeaderSC>
</FlyoverHeaderWrapSC>
)}
<FlyoverContentSC $scrollable={scrollable}>{children}</FlyoverContentSC>
Expand Down

0 comments on commit b251e7d

Please sign in to comment.