fix(mobile): editor error boundary is not fully visible (#9172)

This commit is contained in:
CatsJuice
2024-12-17 02:38:11 +00:00
parent 563da3b6f4
commit 12954ec82c
4 changed files with 17 additions and 4 deletions

View File

@@ -80,6 +80,10 @@ export const affineDocViewport = style({
},
});
export const errorBoundary = style({
flex: 1,
});
export const scrollbar = style({
marginRight: '4px',
});

View File

@@ -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>