Skip to content

Commit

Permalink
Allow overflow of select option content
Browse files Browse the repository at this point in the history
  • Loading branch information
spohlenz committed Apr 17, 2024
1 parent c3a569a commit 0c47443
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/bundle/trestle/bundle.css

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions frontend/css/components/_select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@
}
}

.select2-selection--single {
.select2-selection__rendered {
height: 100%;
overflow: visible;
padding-right: 1.25em;
}
}

.select2-selection--multiple {
padding: $s2bs5-padding-y $s2bs5-padding-y;

Expand Down Expand Up @@ -47,12 +55,14 @@
&.select2-container--below {
.select2-selection {
clip-path: inset($inset $inset 0 $inset);
border-bottom-width: 1px;
}
}

&.select2-container--above {
.select2-selection {
clip-path: inset(0 $inset $inset $inset);
border-top-width: 1px;
}
}

Expand Down
3 changes: 3 additions & 0 deletions frontend/css/variables/_bootstrap.scss
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ $form-check-padding-start: $form-check-input-width + 0.6em;
$form-switch-width: 2.25em;
$form-switch-focus-color: #aaaaaa;

$form-select-padding-x-sm: 0.62rem;
$form-select-padding-x-lg: 0.75rem;


// Dropdowns

Expand Down

0 comments on commit 0c47443

Please sign in to comment.