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): center peek can't open in firefox and safari (#8816)

CatsJuice87520e9bf91b
diff --git a/packages/frontend/core/src/modules/peek-view/view/modal-container.tsx b/packages/frontend/core/src/modules/peek-view/view/modal-container.tsx
index 0ae0fc1b6b..b52f7db9ff 100644
--- a/packages/frontend/core/src/modules/peek-view/view/modal-container.tsx
+++ b/packages/frontend/core/src/modules/peek-view/view/modal-container.tsx
@@ -123,6 +123,7 @@ export const PeekViewModalContainer = forwardRef<
if (!contentClip || !content || !target || !overlay) {
resolve();
+ setAnimeState('idle');
return;
}
const targets = contentClip;