MozillaZine

[Solved] Force Width of Search Box Fields in Toolbars

User Help for Mozilla Thunderbird
ThunderStruck
 
Posts: 24
Joined: April 1st, 2019, 10:52 pm

Post Posted April 2nd, 2019, 10:23 pm

For Thunderbird 60+, I've found that the search box field widths collapse and expand depending on the overall width of the application window. I would like to force the search box fields (.searchBox) found in the Toolbar and Quick Filter Toolbar areas (#mail-bar3, #quick-filter-bar, gloda search) to be a specific width. I tried modifying these variables with a width attribute (.searchBox, .searchBox > .textbox-input-box, etc.), but it wouldn't take. [I also realize that the search box can be shorted in the main toolbar zone by applying spaces and flexible spaces, but that's not what I want to do.] How do I override this and force the search box fields to be a specific width, regardless of the application window's size?
Last edited by ThunderStruck on April 7th, 2019, 2:49 pm, edited 1 time in total.

morat
 
Posts: 3198
Joined: February 3rd, 2009, 6:29 pm

Post Posted April 7th, 2019, 9:13 am

The following style fails because the width is hardcoded.

Code: Select all
#quick-filter-bar .searchBox {
  width: 200 !important;
  minwidth: 100 !important;
}

You would need to create an extension to change the width.

Reference
http://dxr.mozilla.org/comm-esr60/search?q=qfb-qs-textbox+file%3AquickFilterBar.xul

Frank Lion

User avatar
 
Posts: 20296
Joined: April 23rd, 2004, 6:59 pm
Location: ... The Exorcist....United Kingdom

Post Posted April 7th, 2019, 11:33 am

morat wrote:The following style fails because the width is hardcoded.

The following style because you've, very uncharacteristically, messed up min-width, haha...

Try this -

Code: Select all
 .searchBox {
  width: 500px !important;
  min-width: 500px !important;
}


To shorten them, no matter what, then also throw a max-width into that lot.
Metal Lion latest SeaMonkey & Thunderbird Themes - Sea Monkey and Silver Sea Monkey
"The only thing necessary for the triumph of evil, is for good men to do nothing." - Edmund Burke (attrib.)

ThunderStruck
 
Posts: 24
Joined: April 1st, 2019, 10:52 pm

Post Posted April 7th, 2019, 2:48 pm

That's one big bowl of awesomesauce. That completely solved it. Thanks, folks!

morat
 
Posts: 3198
Joined: February 3rd, 2009, 6:29 pm

Post Posted April 8th, 2019, 7:25 am

@Frank Lion

D'oh! Thanks for the fix.

Return to Thunderbird Support


Who is online

Users browsing this forum: No registered users and 9 guests