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(core): collection modal position after modal style changes (#5289)

Peng Xiao098787bd0c39
diff --git a/packages/frontend/component/src/components/page-list/view/edit-collection/hooks.tsx b/packages/frontend/component/src/components/page-list/view/edit-collection/hooks.tsx
index b21106f0fc..538edffb4b 100644
--- a/packages/frontend/component/src/components/page-list/view/edit-collection/hooks.tsx
+++ b/packages/frontend/component/src/components/page-list/view/edit-collection/hooks.tsx
@@ -27,7 +27,7 @@ export const useSelectPage = ({
contentOptions={{
style: {
padding: 0,
- transform: 'translate(-50%,calc(-50% + 16px))',
+ transform: 'translateY(16px)',
maxWidth: 976,
backgroundColor: 'var(--affine-white)',
},