refactor: update configuration and initialization for Zen application

This commit is contained in:
mr. M
2025-03-26 23:28:30 +01:00
parent daf6d6aea8
commit c3e33fa7f3
8 changed files with 59 additions and 30 deletions

View File

@@ -65,7 +65,7 @@ var gZenUIManager = {
tabs.style.removeProperty('flex');
tabs.style.maxHeight = height + 'px';
gZenVerticalTabsManager.actualWindowButtons.removeAttribute('zen-has-hover');
gURLBar.updateLayoutBreakout();
gURLBar.zenUpdateLayoutBreakout();
},
get tabsWrapper() {
@@ -642,7 +642,10 @@ var gZenVerticalTabsManager = {
if (!isSingleToolbar) {
document.getElementById('urlbar').style.setProperty('--urlbar-height', '32px');
} else {
gURLBar.updateLayoutBreakout();
try {
gURLBar.zenUpdateLayoutBreakout();
} catch (e) {
}
}
// Always move the splitter next to the sidebar