fix: style error about model close icon button postion (#777)

This commit is contained in:
DiamondThree
2023-02-03 14:16:48 +08:00
committed by GitHub
parent 7a7a339938
commit 76d52bd2fd

View File

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