Skip to content

Commit

Permalink
Merge pull request #1629 from lerni/horizontal-scroll
Browse files Browse the repository at this point in the history
Apply fix to prevent horizontal scrollbar in the CMS admin
  • Loading branch information
GuySartorelli authored Jan 23, 2024
2 parents 90f494e + 4c53dec commit c8f03f2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/dist/styles/bundle.css

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions client/src/styles/_chosen.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@
.chosen-container-multi .chosen-choices {
padding: 4px 5px;
}

// Avoid chosen dropdowns overflowing when not active
// affects non-firefox #1422
.chosen-container:not(.chosen-container-active) .chosen-drop {
overflow: hidden;
}
5 changes: 4 additions & 1 deletion client/src/styles/legacy/_preview.scss
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,14 @@
width: auto !important;
}

.chosen-drop{
.chosen-drop {
padding: 0;
margin-top: -5px;
border: 1px solid $dropdown-border-color;
box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
// width & right prevent overflow with non-firefox #1422
width: inherit;
right: 0;

ul.chosen-results {
padding: $dropdown-padding-y 0;
Expand Down

0 comments on commit c8f03f2

Please sign in to comment.