Skip to content

Commit

Permalink
fix: markup for close icon of custom alert
Browse files Browse the repository at this point in the history
  • Loading branch information
t.chigvintseva committed Jun 14, 2024
1 parent 5a00ece commit 480ac1e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions packages/desktop/src/main/ts/custom-alert/CustomAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const CustomAlert: FC<CustomAlertProps> = ({
type="relative"
py={5}
pl={6}
pr={onHide !== undefined ? 18 : 6}
pr={onHide !== undefined ? 13 : 6}
>
{icon && <FlexItem display="flex" mr={3}>{icon}</FlexItem>}
<FlexItem display="flex" grow={1}>
Expand All @@ -53,8 +53,8 @@ export const CustomAlert: FC<CustomAlertProps> = ({
<Pos
cursor="pointer"
type="absolute"
right={6}
top={5}
right={2}
top={2}
onClick={renderProps.onCloseClick}
onMouseEnter={renderProps.onCloseMouseEnter}
onMouseLeave={renderProps.onCloseMouseLeave}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions packages/mobile/src/main/ts/custom-alert/CustomAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const CustomAlert: FC<CustomAlertProps> = ({
type="relative"
py={4}
pl={4}
pr={onHide !== undefined ? 14 : 4}
pr={onHide !== undefined ? 11.5 : 4}
>
{icon && <FlexItem display="flex" mr={2}>{icon}</FlexItem>}
<FlexItem display="flex" my="2px">
Expand All @@ -53,8 +53,8 @@ export const CustomAlert: FC<CustomAlertProps> = ({
<Pos
cursor="pointer"
type="absolute"
right={4}
top={4}
right={1.5}
top={1.5}
onClick={renderProps.onCloseClick}
onMouseEnter={renderProps.onCloseMouseEnter}
onMouseLeave={renderProps.onCloseMouseLeave}
Expand Down

0 comments on commit 480ac1e

Please sign in to comment.