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): workaround for center peek styles (#7532)

Peng Xiaod168128174b4
diff --git a/packages/frontend/core/src/modules/peek-view/view/peek-view-manager.tsx b/packages/frontend/core/src/modules/peek-view/view/peek-view-manager.tsx
index 1030e31610..4ceb727c99 100644
--- a/packages/frontend/core/src/modules/peek-view/view/peek-view-manager.tsx
+++ b/packages/frontend/core/src/modules/peek-view/view/peek-view-manager.tsx
@@ -72,7 +72,7 @@ const getRendererProps = (
activePeekView?.target instanceof HTMLElement
? activePeekView.target
: undefined,
- padding: activePeekView.info.type === 'doc',
+ padding: activePeekView.info.type !== 'image',
dialogFrame: activePeekView.info.type !== 'image',
};
};