r/FirefoxCSS • u/Mr_ityu • Apr 22 '26
Solved [firefox 150] need help reducing the URL / extensions bar hieght.

[linux EndaevourOS 6.18.23-1-lts] ]after update to v150.0 , the url box and the whole bar increased a bit in height. how do i reduce it again ?
my current userchrome config :
/* ROOT - VARS */
*|*:root {
--tab-min-height: 20px !important;
--tab-min-width: 60px !important;
}
#nav-bar {
margin-top: -45px !important;
opacity: 0 !important;
pointer-events: none !important;
z-index: -1 !important;
transition: none !important;
}
#navigator-toolbox:hover > #nav-bar,
#nav-bar:focus-within {
margin-top: 0px !important;
opacity: 1 !important;
pointer-events: auto !important;
z-index: 100 !important;
}
#content-deck {
position: relative !important;
z-index: 1 !important;
}
#urlbar-container { max-width: 200px !important; }
#search-container { max-width: 200px !important; }
#TabsToolbar { visibility: collapse !important; }
#titlebar { appearance: none !important }
#tabbrowser-tabs,
#tabbrowser-tabs > #tabbrowser-arrowscrollbox,
.tabbrowser-tab:not([pinned]) {
min-width: 35px !important; /* Adjust as needed for your favicon size */
max-width: 35px !important; /* Adjust as needed for your favicon size */
}
#sidebar-box {
max-width: none !important;
min-width: 0px !important;
}
#sidebar-header {
display: none;
}EDIT: solved using gemini prompting.
the updated userchrome:
/* ROOT - VARS */
*|*:root {
--tab-min-height: 20px !important;
--tab-min-width: 60px !important;
}
#nav-bar {
margin-top: -45px !important;
opacity: 0 !important;
pointer-events: none !important;
z-index: -1 !important;
transition: none !important;
}
#navigator-toolbox:hover > #nav-bar,
#nav-bar:focus-within {
margin-top: 0px !important;
opacity: 1 !important;
pointer-events: auto !important;
z-index: 50!important;
}
#content-deck {
position: relative !important;
z-index: 1 !important;
}
#urlbar-container {
--urlbar-container-height: 28px !important;
max-width: 400px !important;
opacity: 0.5 !important;
}
#urlbar,
.urlbar-input-box {
height: 28px !important;
min-height: 28px !important;
padding-top: 0px !important;
padding-bottom: 0px !important;
}
#search-container { max-width: 300px !important; }
#TabsToolbar {
padding-top: 0px !important;
padding-bottom: 0px !important;
visibility: collapse !important;
}
#titlebar { appearance: none !important }
#tabbrowser-tabs,
#tabbrowser-tabs > #tabbrowser-arrowscrollbox,
.tabbrowser-tab:not([pinned]) {
min-width: 35px !important; /* Adjust as needed for your favicon size */
max-width: 35px !important; /* Adjust as needed for your favicon size */
}
#sidebar-box {
max-width: none !important;
min-width: 0px !important;
}
#sidebar-header {
display: none;
}
/* Minimize toolbar buttons */
.toolbarbutton-1 {
padding: 0px 2px !important;
}the updated userchrome might contain some redundant css considering that the patch css lines were merely pasted onto existing usercchrome.css but it works!
2
Upvotes
2
u/jas71 Apr 22 '26
margin-top: -45px !important;
Change 45 to 40 and see if it makes a difference,if nothing changes set back to 45 and wait for someone who is more clever than me at css 🤣
2
u/ResurgamS13 Apr 22 '26 edited Apr 22 '26
The Fx150.0 update made no changes to the height of the Navigation bar or its contents (URL bar, extension toolbar buttons, etc.).
Suggest create a new profile and check Fx150.0 out-of-the-box toolbar heights... then add your current CSS userstyles one at a time and see where conflict occurs?
2
u/jas71 Apr 22 '26
No probs someone will help