mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-30 08:02:23 +03:00
chore(core): use flexbox to stretch editor height (#9174)
This commit is contained in:
parent
5cc40114fc
commit
e6bf4ca6e5
@ -281,7 +281,7 @@ export const BlocksuiteDocEditor = forwardRef<
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className={styles.affineDocViewport} style={{ height: '100%' }}>
|
||||
<div className={styles.affineDocViewport}>
|
||||
{!isJournal ? (
|
||||
<adapted.DocTitle doc={page} ref={onTitleRef} />
|
||||
) : (
|
||||
@ -351,9 +351,9 @@ export const BlocksuiteEdgelessEditor = forwardRef<
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className={styles.affineEdgelessDocViewport}>
|
||||
<adapted.EdgelessEditor ref={onDocRef} doc={page} specs={specs} />
|
||||
{portals}
|
||||
</>
|
||||
</div>
|
||||
);
|
||||
});
|
||||
|
@ -2,15 +2,22 @@ import { cssVar } from '@toeverything/theme';
|
||||
import { style, type StyleRule } from '@vanilla-extract/css';
|
||||
|
||||
export const docEditorRoot = style({
|
||||
display: 'block',
|
||||
overflowX: 'clip',
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
});
|
||||
|
||||
export const affineDocViewport = style({
|
||||
height: '100%',
|
||||
flex: 1,
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
paddingBottom: '100px',
|
||||
});
|
||||
export const affineEdgelessDocViewport = style({
|
||||
height: '100%',
|
||||
flex: 1,
|
||||
});
|
||||
|
||||
export const docContainer = style({
|
||||
display: 'block',
|
||||
|
Loading…
Reference in New Issue
Block a user