Skip to content

Commit d5ecf50

Browse files
committed
fix(mobile): journal button should not show for edgeless (#8110)
1 parent 2a2a969 commit d5ecf50

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

packages/frontend/mobile/src/pages/workspace/detail/mobile-detail-page.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,12 @@ const DetailPageImpl = () => {
185185
>
186186
{/* Add a key to force rerender when page changed, to avoid error boundary persisting. */}
187187
<AffineErrorBoundary key={doc.id}>
188-
<JournalIconButton
189-
docId={doc.id}
190-
className={styles.journalIconButton}
191-
/>
188+
{mode === 'page' && (
189+
<JournalIconButton
190+
docId={doc.id}
191+
className={styles.journalIconButton}
192+
/>
193+
)}
192194
<PageDetailEditor
193195
pageId={doc.id}
194196
onLoad={onLoad}

0 commit comments

Comments
 (0)