Skip to content

Commit 6de98f4

Browse files
committed
style: adjust margin-bottom for last collapse item and update header height variable in LeftSidebar and LeftSider components
1 parent dc32deb commit 6de98f4

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

packages/dag/src/components/LeftSidebar.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ $hoverBg: var(--primary-hover-light);
10001000
max-height: 50%;
10011001
10021002
.el-collapse-item:last-child {
1003-
margin-bottom: -1px;
1003+
margin-bottom: 0;
10041004
}
10051005
10061006
.el-collapse-item__header {
@@ -1132,6 +1132,7 @@ $hoverBg: var(--primary-hover-light);
11321132
}
11331133
11341134
:deep(.el-collapse.collapse-fill) {
1135+
--el-collapse-header-height: $headerH;
11351136
.el-collapse-item:first-child:last-child {
11361137
height: 100%;
11371138
.el-collapse-item__wrap {

packages/dag/src/components/migration/LeftSider.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ $hoverBg: #eef3ff;
681681
max-height: 50%;
682682
683683
.el-collapse-item:last-child {
684-
margin-bottom: -2px;
684+
margin-bottom: 0;
685685
}
686686
}
687687
@@ -794,19 +794,25 @@ $hoverBg: #eef3ff;
794794
}
795795
796796
:deep(.el-collapse) {
797+
--el-collapse-header-height: $headerH;
797798
--el-collapse-header-bg-color: var(--header-bg);
798799
border-top: 0;
800+
border-bottom: 0;
801+
802+
.el-collapse-item:last-child {
803+
margin-bottom: 0;
804+
}
799805
800806
&.processor-collapse {
801-
max-height: 30%;
807+
max-height: 50%;
802808
}
803809
804810
&.collapse-fill {
805811
.el-collapse-item:first-child:last-child {
806812
height: 100%;
807813
808814
.el-collapse-item__wrap {
809-
height: calc(100% - #{$headerH - 1});
815+
height: calc(100% - #{$headerH});
810816
border-bottom: none;
811817
}
812818

0 commit comments

Comments
 (0)