Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(core): remove responsive editor width (#4821)

Joooye_3497db941749d4
diff --git a/packages/frontend/component/src/components/workspace/index.css.ts b/packages/frontend/component/src/components/workspace/index.css.ts
index 309a0e20f1..10a381fe90 100644
--- a/packages/frontend/component/src/components/workspace/index.css.ts
+++ b/packages/frontend/component/src/components/workspace/index.css.ts
@@ -27,21 +27,6 @@ export const appStyle = style({
backgroundImage: `url("data:image/svg+xml,%3Csvg viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.25' numOctaves='10' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E")`,
},
},
- vars: {
- '--affine-editor-width': '800px',
- },
- '@media': {
- [breakpoints.down('sm', true)]: {
- vars: {
- '--affine-editor-width': '550px',
- },
- },
- print: {
- vars: {
- '--affine-editor-width': '800px',
- },
- },
- },
});
globalStyle(`html[data-theme="light"] ${appStyle}`, {