fix(mobile): journal button should not show for edgeless (#8110)

This commit is contained in:
pengx17 2024-09-05 09:16:26 +00:00
parent 2a2a969394
commit d5ecf503c2
No known key found for this signature in database
GPG Key ID: 23F23D9E8B3971ED

View File

@ -185,10 +185,12 @@ const DetailPageImpl = () => {
>
{/* Add a key to force rerender when page changed, to avoid error boundary persisting. */}
<AffineErrorBoundary key={doc.id}>
<JournalIconButton
docId={doc.id}
className={styles.journalIconButton}
/>
{mode === 'page' && (
<JournalIconButton
docId={doc.id}
className={styles.journalIconButton}
/>
)}
<PageDetailEditor
pageId={doc.id}
onLoad={onLoad}