Skip to content

Commit 75eec0e

Browse files
committed
feat: 🎸 beautify placeholder for multiple selector
1 parent e993289 commit 75eec0e

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

‎dist/select2-bootstrap4.css‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@
3636
box-sizing: border-box;
3737
list-style: none;
3838
margin: 0;
39-
padding: 0 5px;
40-
width: 100%; }
39+
padding: 0 8px; }
40+
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__rendered .select2-search__field {
41+
width: auto !important; }
4142
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice {
4243
color: #343a40;
4344
border: 1px solid #bdc6d0;

‎dist/select2-bootstrap4.min.css‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/_multiple.scss‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@
99
box-sizing: border-box;
1010
list-style: none;
1111
margin: 0;
12-
padding: 0 5px;
13-
width: 100%;
12+
padding: 0 8px;
13+
14+
.select2-search__field {
15+
width: auto !important;
16+
}
1417
}
1518

1619
// each selected item in input box

0 commit comments

Comments
 (0)