修改整体布局,减少无用间隔

This commit is contained in:
whyour 2022-08-28 00:38:25 +08:00
parent f8f63890e5
commit a3f56be299
5 changed files with 28 additions and 10 deletions

View File

@ -56,7 +56,13 @@
overflow: auto;
height: 100%;
background-color: @component-background;
padding: 16px;
padding: 12px;
}
}
.ql-container-wrapper-has-tab {
.ant-pro-grid-content.wide .ant-pro-page-container-children-content {
padding-top: 0;
}
}
@ -136,7 +142,7 @@
flex: 1;
.ant-pro-grid-content-children {
height: calc(100% - 36px);
height: 100%;
> div,
.log-container,
@ -265,15 +271,23 @@
}
.ant-pro-page-container-children-content {
margin: 18px 18px 18px;
margin: 0;
}
.ant-pro-basicLayout-content {
margin: 18px;
margin: 12px;
.ant-pro-page-container {
margin: -18px -18px -18px;
margin: -12px;
}
.ant-pro-page-container-warp .ant-page-header {
border-bottom: 1px solid #eee;
}
}
.ant-pro-global-header {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
}
.ant-menu-item.ant-pro-sider-collapsed-button {
@ -312,6 +326,10 @@
background-color: #373739;
}
.ant-layout-sider {
border-right: 1px solid rgba(0, 0, 0, 0.06);
}
.ant-pro-sider-logo {
padding: 16px 8px !important;

View File

@ -964,7 +964,7 @@ const Crontab = ({ headerStyle, isPhone, theme }: any) => {
return (
<PageContainer
className="ql-container-wrapper crontab-wrapper"
className="ql-container-wrapper crontab-wrapper ql-container-wrapper-has-tab"
title="定时任务"
extra={[
<Search

View File

@ -444,7 +444,7 @@ const Dependence = ({ headerStyle, isPhone, socketMessage }: any) => {
return (
<PageContainer
className="ql-container-wrapper dependence-wrapper"
className="ql-container-wrapper dependence-wrapper ql-container-wrapper-has-tab"
title="依赖管理"
extra={[
<Search

View File

@ -313,7 +313,7 @@ const Setting = ({
return (
<PageContainer
className="ql-container-wrapper"
className="ql-container-wrapper ql-container-wrapper-has-tab"
title="系统设置"
header={{
style: headerStyle,

View File

@ -181,8 +181,8 @@ export function getTableScroll({
id,
}: { extraHeight?: number; id?: string } = {}) {
if (typeof extraHeight == 'undefined') {
// 47 + 40 + 10 + 24
extraHeight = 121;
// 47 + 40 + 12
extraHeight = 99;
}
let tHeader = null;
if (id) {