fix(core): the full width layout feature does not work (#8687)

This commit is contained in:
JimmFly
2024-11-04 16:29:48 +08:00
committed by GitHub
parent fd7d112235
commit d700f828b7

View File

@@ -1,4 +1,4 @@
import { style } from '@vanilla-extract/css';
import { globalStyle, style } from '@vanilla-extract/css';
export const editor = style({
flex: 1,
selectors: {
@@ -22,3 +22,10 @@ export const editor = style({
},
},
});
globalStyle(`${editor}.full-screen .page-editor-container`, {
vars: {
'--affine-editor-width': '100%',
'--affine-editor-side-padding': '72px',
},
});