fix(core): reserve space for the editor scrollbar (#5625)

Because the space for the scroll bar on the right is reserved, in order to make the editor symmetrical, padding corresponding to the width of the scroll bar is added to the left.
This commit is contained in:
JimmFly
2024-01-18 12:44:27 +00:00
parent 70ea1e5ef8
commit a7e8664959

View File

@@ -18,6 +18,8 @@ export const editor = style({
globalStyle(`${editor} .affine-doc-viewport`, {
paddingBottom: '150px',
paddingLeft: '20px',
scrollbarGutter: 'stable',
});
globalStyle('.is-public-page page-meta-tags', {