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:
pengx17
2024-06-25 07:34:18 +00:00
parent 76f6d91cdd
commit f51da066a8
9 changed files with 440 additions and 459 deletions

View File

@@ -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 />
</>