Skip to content

Commit

Permalink
fix(core): page does not fully stretch the entire screen (#6902)
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmFly committed May 13, 2024
1 parent 4ebe8f5 commit 644bd8c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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} />
) : (
Expand Down Expand Up @@ -133,7 +133,7 @@ export const BlocksuiteDocEditor = forwardRef<
{portals.map(p => (
<Fragment key={p.id}>{p.portal}</Fragment>
))}
</div>
</>
);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const docEditorRoot = style({
export const affineDocViewport = style({
display: 'flex',
flexDirection: 'column',
paddingBottom: '150px',
paddingBottom: '100px',
});

export const docContainer = style({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ export const editor = style({
globalStyle(
`${editor} .affine-page-viewport:not(.affine-embed-synced-doc-editor)`,
{
paddingBottom: '150px',
paddingBottom: '100px',
}
);

0 comments on commit 644bd8c

Please sign in to comment.