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

This commit is contained in:
Ayush Agrawal
2024-02-22 08:16:16 +05:30
committed by GitHub
parent 67dffc2a5a
commit a01f0d86a5

View File

@@ -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',
});