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: css style should not apply on nested editor's viewport (#5859)

Ayush Agrawala01f0d86a51b
diff --git a/packages/frontend/core/src/components/page-detail-editor.css.ts b/packages/frontend/core/src/components/page-detail-editor.css.ts
index 119199ddf8..a2e5710528 100644
--- a/packages/frontend/core/src/components/page-detail-editor.css.ts
+++ b/packages/frontend/core/src/components/page-detail-editor.css.ts
@@ -14,11 +14,14 @@ export const editor = style({
},
},
});
-globalStyle(`${editor} .affine-doc-viewport`, {
- paddingBottom: '150px',
- paddingLeft: '20px',
- scrollbarGutter: 'stable',
-});
+globalStyle(
+ `${editor} .affine-doc-viewport:not(.affine-embed-synced-doc-editor)`,
+ {
+ paddingBottom: '150px',
+ paddingLeft: '20px',
+ scrollbarGutter: 'stable',
+ }
+);
globalStyle('.is-public-page page-meta-tags', {
display: 'none',
});