diff options
author | Viktor Grabov <viktor@grabov.ru> | 2021-01-06 11:32:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-06 09:32:13 +0100 |
commit | 6a054f768136de2caeaecf6c0fe9ffad76281373 (patch) | |
tree | e5c17da609561a65ca2d0b4ffefecf6456eb7452 /django | |
parent | ec6d2531c59466924b645f314ac33f54470d7ac3 (diff) | |
download | django-6a054f768136de2caeaecf6c0fe9ffad76281373.tar.gz |
Fixed #32322 -- Fixed autocomplete widget wrapping.
Diffstat (limited to 'django')
-rw-r--r-- | django/contrib/admin/static/admin/css/autocomplete.css | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/django/contrib/admin/static/admin/css/autocomplete.css b/django/contrib/admin/static/admin/css/autocomplete.css index 3ef95d15f0..be98cb4bfd 100644 --- a/django/contrib/admin/static/admin/css/autocomplete.css +++ b/django/contrib/admin/static/admin/css/autocomplete.css @@ -104,8 +104,10 @@ select.admin-autocomplete { box-sizing: border-box; list-style: none; margin: 0; - padding: 0 5px; + padding: 0 10px 5px 5px; width: 100%; + display: flex; + flex-wrap: wrap; } .select2-container--admin-autocomplete .select2-selection--multiple .select2-selection__rendered li { @@ -123,6 +125,8 @@ select.admin-autocomplete { float: right; font-weight: bold; margin: 5px; + position: absolute; + right: 0; } .select2-container--admin-autocomplete .select2-selection--multiple .select2-selection__choice { |