Skip to content

Commit 50f91fc

Browse files
authored
Fix broken has_one style (#2558)
Likely when we changed around our CSS previously we accidentally broke the rendering of the `has_one` form fields. This restores the original styles.
1 parent 51aac07 commit 50f91fc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/assets/stylesheets/administrate/components/_field-unit.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@
1717
}
1818

1919
.field-unit__field {
20+
flex-grow: 1;
2021
float: left;
2122
margin-left: 2rem;
22-
max-width: 50rem;
23-
width: 100%;
2423

2524
.optgroup-header {
2625
font-weight: $bold-font-weight;
@@ -41,7 +40,7 @@
4140
width: 100%;
4241

4342
.field-unit__field {
44-
width: 100%;
43+
flex-grow: 1;
4544
}
4645

4746
.field-unit__label {

0 commit comments

Comments
 (0)