From 9a2e39e46b51421e7dd89cfc79030a5e01167c39 Mon Sep 17 00:00:00 2001 From: danielvoxy Date: Wed, 13 Mar 2024 18:32:43 -0300 Subject: [PATCH 1/2] fix: update Bootstrap version to 5.1.3 --- bootstrap_select/widgets.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap_select/widgets.py b/bootstrap_select/widgets.py index 9f5e700..defc123 100644 --- a/bootstrap_select/widgets.py +++ b/bootstrap_select/widgets.py @@ -19,9 +19,9 @@ def media(self): js = ['//cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.12.4/js/bootstrap-select.min.js', ] # noqa if self.bootstrap_css: - css['all'] = ['//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css'] + css['all'] # noqa + css['all'] = ['//maxcdn.bootstrapcdn.com/bootstrap/5.1.3/css/bootstrap.min.css'] + css['all'] # noqa if self.bootstrap_js: - js = ['//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js'] + js + js = ['//maxcdn.bootstrapcdn.com/bootstrap/5.1.3/js/bootstrap.min.js'] + js if self.jquery_js: js = ['//ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js'] + js From 3a34f7c465dd2172041dc2c61ceb66a80abb5a09 Mon Sep 17 00:00:00 2001 From: danielvoxy Date: Wed, 13 Mar 2024 18:33:05 -0300 Subject: [PATCH 2/2] fix: adjust field-icon visibility --- .../static/bootstrap_select/bootstrap_select.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bootstrap_select/static/bootstrap_select/bootstrap_select.css b/bootstrap_select/static/bootstrap_select/bootstrap_select.css index 1b28873..115e467 100644 --- a/bootstrap_select/static/bootstrap_select/bootstrap_select.css +++ b/bootstrap_select/static/bootstrap_select/bootstrap_select.css @@ -5,3 +5,12 @@ .form-row { overflow: visible; } + +.form-row.field-icon { + overflow: hidden; +} + +.bootstrap-select .dropdown-menu { + height: 500px; + width: 500px; +}