mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-14 13:56:11 +00:00
Refactor ZenStartup and ZenUIManager to improve UI layout and remove console logs
This commit is contained in:
@@ -71,7 +71,7 @@
|
|||||||
totalHeight -= tab.getBoundingClientRect().height;
|
totalHeight -= tab.getBoundingClientRect().height;
|
||||||
}
|
}
|
||||||
tabs.style.maxHeight = totalHeight + 'px';
|
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');
|
const allTabs = document.getElementById('alltabs-button');
|
||||||
allTabs.removeAttribute('hidden');
|
allTabs.removeAttribute('hidden');
|
||||||
|
@@ -71,7 +71,6 @@ var gZenVerticalTabsManager = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_updateEvent() {
|
_updateEvent() {
|
||||||
console.log('ZenThemeModifier: update event');
|
|
||||||
this._updateMaxWidth();
|
this._updateMaxWidth();
|
||||||
if (Services.prefs.getBoolPref('zen.view.sidebar-expanded')) {
|
if (Services.prefs.getBoolPref('zen.view.sidebar-expanded')) {
|
||||||
this.navigatorToolbox.setAttribute('zen-expanded', 'true');
|
this.navigatorToolbox.setAttribute('zen-expanded', 'true');
|
||||||
|
Submodule src/browser/base/content/zen-components updated: 89f28b307d...4cedd84ac8
@@ -55,6 +55,10 @@
|
|||||||
|
|
||||||
#zen-sidebar-icons-wrapper {
|
#zen-sidebar-icons-wrapper {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
|
|
||||||
|
& toolbarbutton {
|
||||||
|
width: fit-content;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#newtab-button-container {
|
#newtab-button-container {
|
||||||
@@ -106,8 +110,9 @@
|
|||||||
& #zen-sidebar-icons-wrapper {
|
& #zen-sidebar-icons-wrapper {
|
||||||
display: grid;
|
display: grid;
|
||||||
/* Make sure the icons take most of the space, smartly */
|
/* 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;
|
gap: 4px;
|
||||||
|
justify-content: space-between;
|
||||||
|
|
||||||
padding-top: calc(var(--zen-toolbox-padding) * 2);
|
padding-top: calc(var(--zen-toolbox-padding) * 2);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user