Skip to content

Commit

Permalink
fix(mobile): do not show toc in doc peekview
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Dec 26, 2024
1 parent 6d5733f commit 22c0f70
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,16 @@ function DocPeekPreviewEditor({
defaultOpenProperty={defaultOpenProperty}
/>
</Scrollable.Viewport>
g
<Scrollable.Scrollbar />
</Scrollable.Root>
<EditorOutlineViewer
editor={editorElement}
show={mode === 'page'}
openOutlinePanel={openOutlinePanel}
/>
{!BUILD_CONFIG.isMobileEdition && !BUILD_CONFIG.isMobileWeb ? (
<EditorOutlineViewer
editor={editorElement}
show={mode === 'page'}
openOutlinePanel={openOutlinePanel}
/>
) : null}
</AffineErrorBoundary>
);
}
Expand Down

0 comments on commit 22c0f70

Please sign in to comment.