From 7291098f98f3dc6249eb3daec88322ed5849667d Mon Sep 17 00:00:00 2001 From: whyour Date: Sun, 19 Mar 2023 15:11:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=8B=E6=9C=BA=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=BB=9A=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/index.less | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/layouts/index.less b/src/layouts/index.less index 29d5058a..0c44db37 100644 --- a/src/layouts/index.less +++ b/src/layouts/index.less @@ -9,9 +9,17 @@ url('../assets/fonts/SourceCodePro-Regular.ttf') format('truetype'); } +body { + position: fixed; + top: 0; + left: 0; +} + #root { height: 100vh; height: calc(100vh - var(--vh-offset, 0px)); + overflow-y: auto; + -webkit-overflow-scrolling: touch; } .ant-modal-body {