search autocomplete results too narrow

Created on 26 September 2024, 7 months ago

I recently updated to our Chosen to 5.0.0-rc1. Overall this is an improvement, though there seems to be an issue where the autocomplete dropdown can appear too narrow. Including a screenshot below.

πŸ’¬ Support request
Status

Active

Version

5.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States w01f

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @w01f
  • πŸ‡ΊπŸ‡ΈUnited States w01f
  • πŸ‡­πŸ‡ΊHungary nagy.balint

    Hi!

    I think this might have been the case for previous versions as well.

    For claro the module defines "min-width: 160px;"

    The front end theme has no such definition, but we have a "Minimum width of widget" setting in the
    "admin/config/user-interface/chosen"

    Maybe it is only problematic in a Tabs context.

    If I set "Minimum width of widget" to 200px for example, then it works for me even in horizontal tabs.

  • πŸ‡ΊπŸ‡ΈUnited States w01f

    Confirmed that works - assuming you mean something like:

    .chosen-with-drop { min-width: 200px; }

    That works for me. 150px appears to even be sufficient to prevent it from looking overly narrow when the user starts typing.

Production build 0.71.5 2024