diff --git a/src/layouts/index.less b/src/layouts/index.less index 09a80f51..c0425d83 100644 --- a/src/layouts/index.less +++ b/src/layouts/index.less @@ -135,12 +135,13 @@ input:-webkit-autofill:active { display: flex; flex-direction: column; height: calc(100vh - 48px); + height: calc(100vh - var(--vh-offset, 0px) - 48px); .ant-pro-grid-content.wide { flex: 1; .ant-pro-grid-content-children { height: calc(100% - 48px); + height: calc(100% - var(--vh-offset, 0px) - 48px); > div, - .ant-pro-page-container-children-content, .log-container, .react-codemirror2, .CodeMirror { @@ -178,6 +179,10 @@ input:-webkit-autofill:active { } } +.ant-layout-content.ant-pro-basicLayout-content.ant-pro-basicLayout-has-header { + margin-bottom: 0 !important; +} + @media (min-width: 768px) { .ant-layout-content.ant-pro-basicLayout-content.ant-pro-basicLayout-has-header { min-height: calc(100vh - 72px); diff --git a/src/pages/setting/index.tsx b/src/pages/setting/index.tsx index 26ae123e..12da51ca 100644 --- a/src/pages/setting/index.tsx +++ b/src/pages/setting/index.tsx @@ -80,12 +80,7 @@ const Password = () => { style: headerStyle, }} > - +