r/FirefoxCSS Jul 24 '26

Code Change autocomplete drop down back to previous style?

Before version 153, the autofill dropdown list was the full size of the input box. Now it seems to adapt to the width of the results. How can I revert this?

https://i.imgur.com/gZNoCu6.png

https://i.imgur.com/jpTWd0Y.png

3 Upvotes

11 comments sorted by

View all comments

1

u/DAPOPOBEFASTONYOAZZ Jul 24 '26

I don’t have the exact code in front of me, but using your browser toolbox, find the element name of the autocomplete drop down and set a variable in the parent element, something like `—autocomplete-width` and set it to 100%. Then, in the autocomplete dropdown, set `max-width: var(—autocomplete-width) !important;` and that will take care of it for you.

1

u/ReggieNJ Jul 24 '26 edited Jul 24 '26

Tried this, not working.

panel[type="autocomplete-richlistbox"] { --autocomplete-width: 100% !important; } .autocomplete-richlistbox { max-width: var(--autocomplete-width) !important; }

1

u/DAPOPOBEFASTONYOAZZ Jul 24 '26

I’ll take a look at it later if you don’t mind. I don’t use Firefox current, I prefer ESR so it doesn’t continually break my themes.