From b3933e8bf89fea16cc4f6eee02610a4ec56a6d3c Mon Sep 17 00:00:00 2001 From: pengx17 <pengxiao@outlook.com> Date: Fri, 27 Dec 2024 05:48:50 +0000 Subject: [PATCH] fix(mobile): do not show toc in doc peek view (#9348) fix AF-2025 --- .../peek-view/view/doc-preview/doc-peek-view.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/frontend/core/src/modules/peek-view/view/doc-preview/doc-peek-view.tsx b/packages/frontend/core/src/modules/peek-view/view/doc-preview/doc-peek-view.tsx index 6cba72caee78f..b4d23bf32b9b5 100644 --- a/packages/frontend/core/src/modules/peek-view/view/doc-preview/doc-peek-view.tsx +++ b/packages/frontend/core/src/modules/peek-view/view/doc-preview/doc-peek-view.tsx @@ -159,11 +159,13 @@ function DocPeekPreviewEditor({ </Scrollable.Viewport> <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> ); }