Skip to content

Commit 60fe560

Browse files
authored
fix: responsive dropdowns (#364)
1 parent 79e12f6 commit 60fe560

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/unfold/static/unfold/css/styles.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/unfold/styles.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ h3 span:nth-child(3) {
342342
.select2-container.select2-container--admin-autocomplete
343343
.select2-search--dropdown
344344
.select2-search__field {
345-
@apply bg-gray-50 border border-gray-200 border-solid flex-grow font-medium mx-0 outline-none px-3 py-2 rounded-md shadow-sm text-gray-500 text-sm w-auto dark:bg-gray-800 dark:border-gray-800 dark:text-gray-400;
345+
@apply bg-gray-50 border border-gray-200 border-solid flex-grow font-medium mx-0 outline-none px-3 py-2 rounded-md shadow-sm text-gray-500 text-sm w-full dark:bg-gray-800 dark:border-gray-800 dark:text-gray-400;
346346
}
347347

348348
.select2-container.select2-container--admin-autocomplete.select2-container--open.select2-container--above {
@@ -387,6 +387,12 @@ h3 span:nth-child(3) {
387387
@apply pl-1 pr-6 py-0 pt-1;
388388
}
389389

390+
.select2-container.select2-container--admin-autocomplete
391+
.select2-selection--single
392+
.select2-selection__rendered {
393+
@apply pr-8;
394+
}
395+
390396
.select2-container--admin-autocomplete
391397
.select2-selection--multiple
392398
li.select2-selection__choice {

0 commit comments

Comments
 (0)