mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
fix(mobile): editor error boundary is not fully visible (#9172)
This commit is contained in:
@@ -80,6 +80,10 @@ export const affineDocViewport = style({
|
||||
},
|
||||
});
|
||||
|
||||
export const errorBoundary = style({
|
||||
flex: 1,
|
||||
});
|
||||
|
||||
export const scrollbar = style({
|
||||
marginRight: '4px',
|
||||
});
|
||||
|
||||
@@ -205,7 +205,7 @@ const DetailPageImpl = () => {
|
||||
)}
|
||||
>
|
||||
{/* Add a key to force rerender when page changed, to avoid error boundary persisting. */}
|
||||
<AffineErrorBoundary key={doc.id}>
|
||||
<AffineErrorBoundary key={doc.id} className={styles.errorBoundary}>
|
||||
<PageDetailEditor onLoad={onLoad} />
|
||||
</AffineErrorBoundary>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user