fix(core): fix layout overflow (#7647)

This commit is contained in:
EYHN
2024-07-30 15:03:07 +08:00
committed by GitHub
parent fcf0ecbaa2
commit 482b5da02f
2 changed files with 2 additions and 2 deletions

View File

@@ -178,7 +178,6 @@ legend {
body { body {
background: transparent; background: transparent;
overflow: hidden;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
} }
@@ -306,7 +305,7 @@ html,
body { body {
height: 100%; height: 100%;
position: relative; position: relative;
overflow: hidden; overflow: clip;
} }
/** /**

View File

@@ -4,6 +4,7 @@ import { style, type StyleRule } from '@vanilla-extract/css';
export const docEditorRoot = style({ export const docEditorRoot = style({
display: 'block', display: 'block',
background: cssVar('backgroundPrimaryColor'), background: cssVar('backgroundPrimaryColor'),
overflowX: 'clip',
}); });
export const affineDocViewport = style({ export const affineDocViewport = style({