fix(mobile): journal button should not show for edgeless (#8110)
This commit is contained in:
@@ -185,10 +185,12 @@ const DetailPageImpl = () => {
|
|||||||
>
|
>
|
||||||
{/* Add a key to force rerender when page changed, to avoid error boundary persisting. */}
|
{/* Add a key to force rerender when page changed, to avoid error boundary persisting. */}
|
||||||
<AffineErrorBoundary key={doc.id}>
|
<AffineErrorBoundary key={doc.id}>
|
||||||
<JournalIconButton
|
{mode === 'page' && (
|
||||||
docId={doc.id}
|
<JournalIconButton
|
||||||
className={styles.journalIconButton}
|
docId={doc.id}
|
||||||
/>
|
className={styles.journalIconButton}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
<PageDetailEditor
|
<PageDetailEditor
|
||||||
pageId={doc.id}
|
pageId={doc.id}
|
||||||
onLoad={onLoad}
|
onLoad={onLoad}
|
||||||
|
|||||||
Reference in New Issue
Block a user