Refactor ZenStartup and ZenUIManager to improve UI layout and remove console logs

This commit is contained in:
mauro-balades
2024-09-13 20:12:07 +02:00
parent 73e05b6582
commit 65b178e594
4 changed files with 8 additions and 4 deletions

View File

@@ -71,7 +71,7 @@
totalHeight -= tab.getBoundingClientRect().height;
}
tabs.style.maxHeight = totalHeight + 'px';
console.info('ZenThemeModifier: set tabs max-height to', totalHeight + 'px');
//console.info('ZenThemeModifier: set tabs max-height to', totalHeight + 'px');
const allTabs = document.getElementById('alltabs-button');
allTabs.removeAttribute('hidden');

View File

@@ -71,7 +71,6 @@ var gZenVerticalTabsManager = {
},
_updateEvent() {
console.log('ZenThemeModifier: update event');
this._updateMaxWidth();
if (Services.prefs.getBoolPref('zen.view.sidebar-expanded')) {
this.navigatorToolbox.setAttribute('zen-expanded', 'true');

View File

@@ -55,6 +55,10 @@
#zen-sidebar-icons-wrapper {
background: transparent;
& toolbarbutton {
width: fit-content;
}
}
#newtab-button-container {
@@ -106,8 +110,9 @@
& #zen-sidebar-icons-wrapper {
display: grid;
/* Make sure the icons take most of the space, smartly */
grid-template-columns: repeat(auto-fit, minmax(var(--collapsed-tab-width), auto));
grid-template-columns: repeat(auto-fit, minmax(34px, auto));
gap: 4px;
justify-content: space-between;
padding-top: calc(var(--zen-toolbox-padding) * 2);
}