fix: css style should not apply on nested editor's viewport (#5859)

This commit is contained in:
Ayush Agrawal authored and GitHub committed 2024-02-22 10:46:16 +08:00
1 parent 67dffc2a5a
commit a01f0d86a5
1 file changed
+8 -5
@@ -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',
});