mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-27 10:52:40 +08:00
refactor: image preview component issues in center peek (#7313)
fix AF-948 - remove jotai - every editor got its own image block modal - image block uses center peek modal for animation and style
This commit is contained in:
@@ -287,7 +287,13 @@ const DetailPageImpl = memo(function DetailPageImpl() {
|
||||
}
|
||||
/>
|
||||
|
||||
<ImagePreviewModal pageId={doc.id} docCollection={docCollection} />
|
||||
{editor?.host ? (
|
||||
<ImagePreviewModal
|
||||
pageId={doc.id}
|
||||
docCollection={docCollection}
|
||||
host={editor.host}
|
||||
/>
|
||||
) : null}
|
||||
<GlobalPageHistoryModal />
|
||||
<PageAIOnboarding />
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user