Skip to content

Commit

Permalink
Merge pull request #16753 from ElectronicBlueberry/label-margins
Browse files Browse the repository at this point in the history
Fix large gap between labels and form elements
  • Loading branch information
martenson authored Oct 2, 2023
2 parents 13d8342 + b278a31 commit 2ed0ab0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/Form/FormElement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ const isOptional = computed(() => !isRequired.value && attrs.value["optional"] !
.ui-form-element {
margin-top: $margin-v * 0.25;
margin-bottom: $margin-v * 0.25;
margin-bottom: $margin-v * 0.5;
overflow: visible;
clear: both;
Expand Down
5 changes: 5 additions & 0 deletions client/src/style/scss/overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -218,3 +218,8 @@ table.info_data_table th:nth-child(1) {
.sticky-top {
z-index: 800;
}

// remove margin for labels with for attribute
label[for] {
margin-bottom: 0;
}

0 comments on commit 2ed0ab0

Please sign in to comment.