fix(core): page does not fully stretch the entire screen (#6902)

close AFF-1054

https://github.com/toeverything/AFFiNE/assets/102217452/6e4447b7-380d-402b-9445-1c2d9c036363
This commit is contained in:
JimmFly
2024-05-13 06:25:20 +00:00
parent 4ebe8f5fb4
commit 644bd8c817
3 changed files with 5 additions and 5 deletions

View File

@@ -103,8 +103,8 @@ export const BlocksuiteDocEditor = forwardRef<
}, []);
return (
<div className={styles.docEditorRoot}>
<div className={styles.affineDocViewport}>
<>
<div className={styles.affineDocViewport} style={{ height: '100%' }}>
{!isJournal ? (
<adapted.DocTitle doc={page} ref={titleRef} />
) : (
@@ -133,7 +133,7 @@ export const BlocksuiteDocEditor = forwardRef<
{portals.map(p => (
<Fragment key={p.id}>{p.portal}</Fragment>
))}
</div>
</>
);
});

View File

@@ -8,7 +8,7 @@ export const docEditorRoot = style({
export const affineDocViewport = style({
display: 'flex',
flexDirection: 'column',
paddingBottom: '150px',
paddingBottom: '100px',
});
export const docContainer = style({

View File

@@ -25,6 +25,6 @@ export const editor = style({
globalStyle(
`${editor} .affine-page-viewport:not(.affine-embed-synced-doc-editor)`,
{
paddingBottom: '150px',
paddingBottom: '100px',
}
);