Не подтверждена Коммит 644bd8c8 создал по автору JimmFly's avatar JimmFly
Просмотр файлов

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
владелец 4ebe8f5f
...@@ -103,8 +103,8 @@ export const BlocksuiteDocEditor = forwardRef< ...@@ -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< ...@@ -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({ ...@@ -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({ ...@@ -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',
} }
); );
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать