mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-29 02:43:28 +03:00
fix: close icon postion error
This commit is contained in:
parent
c61be05944
commit
efddd3ddb5
@ -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',
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
@ -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,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user