mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-16 17:46:18 +08:00
@@ -8,7 +8,6 @@ import {
|
||||
PageEditor,
|
||||
} from '@blocksuite/presets';
|
||||
import { type Doc } from '@blocksuite/store';
|
||||
import clsx from 'clsx';
|
||||
import React, {
|
||||
forwardRef,
|
||||
useCallback,
|
||||
@@ -103,10 +102,7 @@ export const BlocksuiteDocEditor = forwardRef<
|
||||
|
||||
return (
|
||||
<div className={styles.docEditorRoot}>
|
||||
<div
|
||||
className={clsx('affine-page-viewport', styles.affineDocViewport)}
|
||||
data-doc-viewport={true}
|
||||
>
|
||||
<div className={styles.affineDocViewport}>
|
||||
{!isJournal ? (
|
||||
<adapted.DocTitle doc={page} ref={titleRef} />
|
||||
) : (
|
||||
|
||||
@@ -5,28 +5,10 @@ export const docEditorRoot = style({
|
||||
background: cssVar('backgroundPrimaryColor'),
|
||||
});
|
||||
|
||||
// brings styles of .affine-page-viewport from blocksuite
|
||||
export const affineDocViewport = style({
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
userSelect: 'none',
|
||||
containerName: 'viewport',
|
||||
// todo: find out what this does in bs
|
||||
containerType: 'inline-size',
|
||||
background: cssVar('backgroundPrimaryColor'),
|
||||
'@media': {
|
||||
print: {
|
||||
display: 'none',
|
||||
zIndex: -1,
|
||||
},
|
||||
},
|
||||
selectors: {
|
||||
'&[data-doc-viewport="true"]': {
|
||||
overflowX: 'visible',
|
||||
overflowY: 'visible',
|
||||
height: 'auto',
|
||||
},
|
||||
},
|
||||
paddingBottom: '150px',
|
||||
});
|
||||
|
||||
export const docContainer = style({
|
||||
|
||||
Reference in New Issue
Block a user