Views exposed filters with autocomplete are much wider than text filters

Created on 9 May 2020, over 4 years ago
Updated 27 January 2023, almost 2 years ago

Problem/Motivation

Views exposed filters that use autocomplete are more than twice as wide as plain text filters:

As @larowlan pointed out in #15 🐛 Views exposed filters with autocomplete are much wider than text filters Needs work , autocomplete fields are larger for a reason so you have space to read the results that appear.

Proposed resolution

Set the default size to be smaller?

OR

Make them configurable?

Remaining tasks

Decide what to do.

User interface changes

Original issue summary
---

In a fresh install of Drupal 8.8.5, when adding an exposed filter using the criteria of "Has taxonomy term", the field is twice as wide as all other fields that are exposed. I have attached images. The default character length in most text based fields is 30 but in "has taxonomy term" it is set at 60. This makes the filter region look like ... you know.

I know I have to find a way to make a sub theme just to fix that one little item, but the more I thought about it is a minor bug and one that is easily fixed in Core.

See attached files

🐛 Bug report
Status

Needs work

Version

9.5

Component
Views 

Last updated about 6 hours ago

Created by

🇵🇹Portugal joaomachado

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Needs screenshots

    The change alters the user interface, so before and after screenshots should be added to document the UI change. Make sure to capture the relevant region only. Use a tool such as Aviary on Windows or Skitch on Mac OS X.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States smustgrave

    This issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request as a guide.

    Confirmed this issue on D10 by adding an authored by field to the content view.
    Think we will need test to show this issue (but don't know what that would be)
    Readding the screenshot tag for D10 before/after

    Also think instead of $form[$key we can just use $element.

  • 🇮🇳India _utsavsharma

    Patch for 10.1.x.

Production build 0.71.5 2024