fix(core): fix position of toc in peekview (#8441)

Close [BS-1536](https://linear.app/affine-design/issue/BS-1536/peekview中的toc没有fixed)
This commit is contained in:
L-Sun
2024-10-08 02:44:33 +00:00
parent 4da0231658
commit afb21f734e
2 changed files with 48 additions and 15 deletions

View File

@@ -159,15 +159,14 @@ function DocPeekPreviewEditor({
page={doc.blockSuiteDoc}
onEditorReady={handleOnEditorReady}
/>
<EditorOutlineViewer
editor={editorElement}
show={mode === 'page'}
openOutlinePanel={openOutlinePanel}
/>
</Scrollable.Viewport>
<Scrollable.Scrollbar />
</Scrollable.Root>
<EditorOutlineViewer
editor={editorElement}
show={mode === 'page'}
openOutlinePanel={openOutlinePanel}
/>
</AffineErrorBoundary>
);
}