mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
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 (
|
||||
<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>
|
||||
</>
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ export const docEditorRoot = style({
|
||||
export const affineDocViewport = style({
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
paddingBottom: '150px',
|
||||
paddingBottom: '100px',
|
||||
});
|
||||
|
||||
export const docContainer = style({
|
||||
|
||||
@@ -25,6 +25,6 @@ export const editor = style({
|
||||
globalStyle(
|
||||
`${editor} .affine-page-viewport:not(.affine-embed-synced-doc-editor)`,
|
||||
{
|
||||
paddingBottom: '150px',
|
||||
paddingBottom: '100px',
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user