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 { return {
userSelect: 'none', userSelect: 'none',
width: '400px', width: '400px',
marginBottom: '32px', margin: 'auto',
marginBottom: '24px',
marginTop: '16px', marginTop: '16px',
}; };
}); });

View File

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