You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After implementing #3966, the default Chosen width may appear too narrow.
Describe the bug
In some cases, the default width is too narrow for the dropdown select box enhanced with Chosen.
To Reproduce
Steps to reproduce the behavior:
Go to Content > Add content > create Page.
Click on "Menu settings" section and checkmark "Provide a menu link."
Click open "Parent link" and observe Chosen's width is narrow.
Compare with an existing Page that is in the menu.
Proposed resolution
Options to fix:
A. An issue and patch could be created for Chosen to change width to min-width in the CSS.
B. Minimum width could be set to a relative percentage (e.g., 30 with "Use relative width" enabled).
C. Minimum width could be unset and left blank, where width: auto will then get applied.
Or some combination of fixes.
From some quick testing locally, I think we could leave that Chosen "Minimum width of widget" option blank (so the container would be set to width: auto) and then we could also override the .chosen-drop class to have width: max-content. That seemed to provide a good solution, although there might be a better one.
Expected behavior
Width of Chosen-based dropdown should adjust based on the content within the dropdown.
Screenshots
The text was updated successfully, but these errors were encountered:
Problem/Motivation
After implementing #3966, the default Chosen width may appear too narrow.
Describe the bug
In some cases, the default width is too narrow for the dropdown select box enhanced with Chosen.
To Reproduce
Steps to reproduce the behavior:
Proposed resolution
Options to fix:
A. An issue and patch could be created for Chosen to change width to min-width in the CSS.
B. Minimum width could be set to a relative percentage (e.g., 30 with "Use relative width" enabled).
C. Minimum width could be unset and left blank, where width: auto will then get applied.
Or some combination of fixes.
Comment by @bberndt-uaz:
Expected behavior
Width of Chosen-based dropdown should adjust based on the content within the dropdown.
Screenshots
The text was updated successfully, but these errors were encountered: