mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-05 03:19:52 +08:00
refactor(editor): configurable page block title (#10063)
### What changes - make page block title rendering configurable so that a journal title can be rendered by AFFiNE side. - move page block render logic to a seperate component
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { EDGELESS_BLOCK_CHILD_PADDING } from '@blocksuite/affine-shared/consts';
|
||||
import { cssVar } from '@toeverything/theme';
|
||||
import { globalStyle, style } from '@vanilla-extract/css';
|
||||
import { style } from '@vanilla-extract/css';
|
||||
|
||||
export const ACTIVE_NOTE_EXTRA_PADDING = 20;
|
||||
|
||||
@@ -58,14 +58,6 @@ export const noteBackground = style({
|
||||
},
|
||||
});
|
||||
|
||||
globalStyle(`${edgelessNoteContainer} > doc-title`, {
|
||||
position: 'relative',
|
||||
});
|
||||
|
||||
globalStyle(`${edgelessNoteContainer} > doc-title .doc-title-container`, {
|
||||
padding: '26px 0px',
|
||||
});
|
||||
|
||||
export const pageContent = style({
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
|
||||
Reference in New Issue
Block a user