Skip to content

Commit 64086e8

Browse files
authored
fix: collapsible children margin bottom (#1673)
1 parent 75d2cbe commit 64086e8

File tree

4 files changed

+5
-13
lines changed

4 files changed

+5
-13
lines changed

src/admin/components/elements/Collapsible/index.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
position: relative;
1616
}
1717

18+
&--nested {
19+
margin-bottom: $baseline !important;
20+
}
21+
1822
&--hovered {
1923
>.collapsible__toggle-wrap>.collapsible__drag {
2024
opacity: 1;
@@ -102,7 +106,7 @@
102106
background-color: var(--theme-elevation-0);
103107
border-bottom-left-radius: $style-radius-s;
104108
border-bottom-right-radius: $style-radius-s;
105-
padding: $baseline;
109+
padding: $baseline $baseline 0 $baseline;
106110
}
107111

108112
@include small-break {

src/admin/components/forms/field-types/Array/index.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,4 @@
5454
}
5555
}
5656
}
57-
58-
&__fields>.field-type:last-child {
59-
margin-bottom: 0;
60-
}
6157
}

src/admin/components/forms/field-types/Blocks/index.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,4 @@
7373
}
7474
}
7575
}
76-
77-
&__fields>.field-type:last-child {
78-
margin-bottom: 0;
79-
}
8076
}

src/admin/components/forms/field-types/Collapsible/index.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,4 @@
66
&__label {
77
pointer-events: none;
88
}
9-
10-
.field-type:last-child {
11-
margin-bottom: 0;
12-
}
139
}

0 commit comments

Comments
 (0)