Skip to content

Commit

Permalink
webapp: right-align labels for inputs on non-sm viewports
Browse files Browse the repository at this point in the history
this change tries to achieve a pleasing look of input forms by
right-aligning the texts of labels. the input form now looks similar
to a table, achieving a cleaner look, especially for forms where the
labels have varying text lenghts.
  • Loading branch information
schlimmchen authored and tbnobody committed Nov 1, 2024
1 parent 130d90c commit c750def
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions webapp/src/scss/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,10 @@
.container-fluid .row {
font-feature-settings: 'tnum';
}

@include media-breakpoint-up(sm) {
label.col-form-label,
label.form-check-label {
text-align: end;
}
}

0 comments on commit c750def

Please sign in to comment.