Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert select2 width to auto #243

Merged
merged 1 commit into from Jan 11, 2021
Merged

Conversation

farridav
Copy link
Owner

@farridav farridav commented Jan 9, 2021

Using element as the width for select2 elements appears to have adverse effects for some people (See #242)

The width has been changed from element to auto (the CSS property value) See https://select2.org/appearance#container-width for all options.

test with pip install "git+https://github.com/farridav/django-jazzmin.git@hotfix/select2_element_auto"

It appears to renders as expected in the demo app

image

@jonasjahns / @linhnvhicts / @SVDouble let me know if this resolves your issue or introduces any new ones, everything i have checked thus far seems ok.

Fixes: #242

@jonasjahns
Copy link

Hey @farridav , its working fine for me now!

@farridav farridav merged commit 7a03333 into master Jan 11, 2021
@farridav farridav deleted the hotfix/select2_element_auto branch January 11, 2021 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Select Width for ForeignKey on Admin Change Form
2 participants