Update ZenUIManager and zen-urlbar.css

This commit is contained in:
mauro-balades
2024-09-18 23:02:03 +02:00
parent d69d56850f
commit 787ea8c20d
2 changed files with 12 additions and 0 deletions

View File

@@ -72,10 +72,18 @@ var gZenVerticalTabsManager = {
_updateEvent() {
this._updateMaxWidth();
const topButtons = document.getElementById('zen-sidebar-top-buttons');
const customizationTarget = document.getElementById('nav-bar-customization-target');
const tabboxWrapper = document.getElementById('zen-tabbox-wrapper');
const browser = document.getElementById('browser');
if (Services.prefs.getBoolPref('zen.view.sidebar-expanded')) {
this.navigatorToolbox.setAttribute('zen-expanded', 'true');
this.navigatorToolbox.prepend(topButtons);
browser.prepend(this.navigatorToolbox);
} else {
this.navigatorToolbox.removeAttribute('zen-expanded');
customizationTarget.prepend(topButtons);
tabboxWrapper.prepend(this.navigatorToolbox);
}
if (Services.prefs.getBoolPref('zen.tabs.vertical.right-side')) {
this.navigatorToolbox.setAttribute('zen-right-side', 'true');

View File

@@ -254,6 +254,10 @@ button.popup-notification-dropmarker {
align-items: center;
}
#browser:not(:has([zen-expanded="true"])) #nav-bar {
padding-left: calc(var(--zen-toolbox-padding) * 2 + 1px);
}
/* Other small tweaks */
#nav-bar-customization-target {
/* Don't grow if potentially-user-sized elements (like the searchbar or the