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:
@@ -103,8 +103,8 @@ export const BlocksuiteDocEditor = forwardRef<
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.docEditorRoot}>
|
<>
|
||||||
<div className={styles.affineDocViewport}>
|
<div className={styles.affineDocViewport} style={{ height: '100%' }}>
|
||||||
{!isJournal ? (
|
{!isJournal ? (
|
||||||
<adapted.DocTitle doc={page} ref={titleRef} />
|
<adapted.DocTitle doc={page} ref={titleRef} />
|
||||||
) : (
|
) : (
|
||||||
@@ -133,7 +133,7 @@ export const BlocksuiteDocEditor = forwardRef<
|
|||||||
{portals.map(p => (
|
{portals.map(p => (
|
||||||
<Fragment key={p.id}>{p.portal}</Fragment>
|
<Fragment key={p.id}>{p.portal}</Fragment>
|
||||||
))}
|
))}
|
||||||
</div>
|
</>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ export const docEditorRoot = style({
|
|||||||
export const affineDocViewport = style({
|
export const affineDocViewport = style({
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
paddingBottom: '150px',
|
paddingBottom: '100px',
|
||||||
});
|
});
|
||||||
|
|
||||||
export const docContainer = style({
|
export const docContainer = style({
|
||||||
|
|||||||
@@ -25,6 +25,6 @@ export const editor = style({
|
|||||||
globalStyle(
|
globalStyle(
|
||||||
`${editor} .affine-page-viewport:not(.affine-embed-synced-doc-editor)`,
|
`${editor} .affine-page-viewport:not(.affine-embed-synced-doc-editor)`,
|
||||||
{
|
{
|
||||||
paddingBottom: '150px',
|
paddingBottom: '100px',
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user