[Solved] Force Width of Search Box Fields in Toolbars
-
- Posts: 24
- Joined: April 1st, 2019, 10:52 pm
[Solved] Force Width of Search Box Fields in Toolbars
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.
-
- Posts: 6426
- Joined: February 3rd, 2009, 6:29 pm
Re: Shorten/Force the Width of Search Box Fields in the Tool
The following style fails because the width is hardcoded.
You would need to create an extension to change the width.
Reference
http://dxr.mozilla.org/comm-esr60/searc ... terBar.xul
Code: Select all
#quick-filter-bar .searchBox {
width: 200 !important;
minwidth: 100 !important;
}
Reference
http://dxr.mozilla.org/comm-esr60/searc ... terBar.xul
- Frank Lion
- Posts: 21177
- Joined: April 23rd, 2004, 6:59 pm
- Location: ... The Exorcist....United Kingdom
- Contact:
Re: Shorten/Force the Width of Search Box Fields in the Tool
The following style because you've, very uncharacteristically, messed up min-width, haha...morat wrote:The following style fails because the width is hardcoded.
Try this -
Code: Select all
.searchBox {
width: 500px !important;
min-width: 500px !important;
}
"The only thing necessary for the triumph of evil, is for good men to do nothing." - Edmund Burke (attrib.)
.
.
-
- Posts: 24
- Joined: April 1st, 2019, 10:52 pm
Re: Shorten/Force the Width of Search Box Fields in the Tool
That's one big bowl of awesomesauce. That completely solved it. Thanks, folks!
-
- Posts: 6426
- Joined: February 3rd, 2009, 6:29 pm
Re: [Solved] Force Width of Search Box Fields in Toolbars
@Frank Lion
D'oh! Thanks for the fix.
D'oh! Thanks for the fix.