修复样式问题。
This commit is contained in:
parent
cc395cc0dd
commit
19ee89418a
@ -5,6 +5,7 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
&-container {
|
&-container {
|
||||||
|
height: calc(100vh - 170px);
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
@ -21,17 +22,20 @@
|
|||||||
|
|
||||||
&-content {
|
&-content {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
height: 100%;
|
||||||
|
padding: 16px;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-height: 0; // 允许内容区域收缩
|
min-height: 0; // 允许内容区域收缩
|
||||||
padding: 8px; // 减小内边距
|
padding: 8px; // 减小内边距
|
||||||
background: #fafafa;
|
background: #fafafa;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
&-graph {
|
&-graph {
|
||||||
|
height: 100%;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-height: 0; // 允许内容区域收缩
|
min-height: 0; // 允许内容区域收缩
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border: 1px solid #f0f0f0;
|
border: 1px solid #f0f0f0;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
@ -52,35 +56,41 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-card {
|
.ant-card-body {
|
||||||
height: 100%;
|
height: calc(100% - 57px);
|
||||||
display: flex;
|
padding: 0;
|
||||||
flex-direction: column;
|
|
||||||
|
|
||||||
.ant-card-head {
|
.ant-card {
|
||||||
flex-shrink: 0;
|
height: 100%;
|
||||||
}
|
|
||||||
|
|
||||||
.ant-card-body {
|
|
||||||
flex: 1;
|
|
||||||
padding: 0;
|
|
||||||
min-height: 0; // 允许内容区域收缩
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
|
.ant-card-head {
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-card-body {
|
||||||
|
flex: 1;
|
||||||
|
padding: 0;
|
||||||
|
min-height: 0; // 允许内容区域收缩
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.ant-layout {
|
.ant-layout {
|
||||||
flex: 1;
|
height: 100%;
|
||||||
min-height: 0; // 允许内容区域收缩
|
|
||||||
background: #fff;
|
|
||||||
display: flex;
|
|
||||||
|
|
||||||
.ant-layout-content {
|
|
||||||
flex: 1;
|
flex: 1;
|
||||||
position: relative;
|
min-height: 0; // 允许内容区域收缩
|
||||||
padding: 8px; // 减小内边距
|
background: #fff;
|
||||||
background: #fafafa;
|
display: flex;
|
||||||
|
|
||||||
|
.ant-layout-content {
|
||||||
|
flex: 1;
|
||||||
|
position: relative;
|
||||||
|
padding: 8px; // 减小内边距
|
||||||
|
background: #fafafa;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user