修复移动端100vh兼容性

This commit is contained in:
whyour
2021-05-11 19:37:37 +08:00
parent d9db5442d3
commit 49a3662788
12 changed files with 45 additions and 40 deletions
+2 -5
View File
@@ -87,7 +87,7 @@ const Password = () => {
return (
<PageContainer
className="code-mirror-wrapper"
className="ql-container-wrapper"
title="系统设置"
header={{
style: {
@@ -101,14 +101,11 @@ const Password = () => {
marginLeft,
},
}}
style={{
height: '100vh',
}}
>
<Tabs
defaultActiveKey="person"
tabPosition="left"
style={{ height: 'calc(100vh - 128px)' }}
style={{ height: 'calc(100vh - var(--vh-offset, 0px) - 128px)' }}
>
<Tabs.TabPane tab="个人设置" key="person">
<Form onFinish={handleOk} layout="vertical">