Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: close icon postion error (#775)

DiamondThree189f51df2535
diff --git a/packages/app/src/components/enable-workspace/EnableWorkspaceModal.tsx b/packages/app/src/components/enable-workspace/EnableWorkspaceModal.tsx
index a4552085d0..703dd5b7eb 100644
--- a/packages/app/src/components/enable-workspace/EnableWorkspaceModal.tsx
+++ b/packages/app/src/components/enable-workspace/EnableWorkspaceModal.tsx
@@ -93,7 +93,8 @@ const StyleTips = styled('div')(() => {
return {
userSelect: 'none',
width: '400px',
- marginBottom: '32px',
+ margin: 'auto',
+ marginBottom: '24px',
marginTop: '16px',
};
});
diff --git a/packages/app/src/ui/modal/ModalCloseButton.tsx b/packages/app/src/ui/modal/ModalCloseButton.tsx
index f5e4eaf079..f3e1c40505 100644
--- a/packages/app/src/ui/modal/ModalCloseButton.tsx
+++ b/packages/app/src/ui/modal/ModalCloseButton.tsx
@@ -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,
};