Skip to content

Commit

Permalink
fix: markup for close icon of custom alert (#593)
Browse files Browse the repository at this point in the history
Co-authored-by: t.chigvintseva <[email protected]>
  • Loading branch information
ttroshkina and t.chigvintseva authored Jun 17, 2024
1 parent 68427ff commit ba96539
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 ba96539

Please sign in to comment.