fix: close icon postion error

This commit is contained in:
DiamondThree 2023-02-03 11:24:06 +08:00
parent c61be05944
commit efddd3ddb5
2 changed files with 3 additions and 2 deletions

View File

@ -93,7 +93,8 @@ const StyleTips = styled('div')(() => {
return {
userSelect: 'none',
width: '400px',
marginBottom: '32px',
margin: 'auto',
marginBottom: '24px',
marginTop: '16px',
};
});

View File

@ -13,7 +13,7 @@ const StyledIconButton = styled(IconButton)<
Pick<ModalCloseButtonProps, 'top' | 'right'>
>(({ top, right }) => {
return {
position: 'absolute',
position: top ? 'absolute' : 'unset',
top: top ?? 24,
right: right ?? 40,
};