mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-14 05:46:26 +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;
|
||||
}
|
||||
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');
|
||||
|
@@ -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');
|
||||
|
Submodule src/browser/base/content/zen-components updated: 89f28b307d...4cedd84ac8
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user