chore: Update Zen browser components submodule commit reference and improve flatpak configuration and fixed tabs not fully closing

This commit is contained in:
Mauro Balades
2024-08-11 13:37:46 +02:00
parent bd449faf05
commit c57db962f8
9 changed files with 42 additions and 44 deletions

View File

@@ -124,6 +124,7 @@ var ZenThemeModifier = {
gZenVerticalTabsManager.init();
gZenCompactModeManager.init();
gZenKeyboardShortcuts.init();
this._updateZenAvatar();
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', this._onPrefersColorSchemeChange.bind(this));
@@ -153,8 +154,8 @@ var ZenThemeModifier = {
const tabs = document.getElementById("tabbrowser-arrowscrollbox");
tabs.style.maxHeight = '0px'; // reset to 0
const toolbarRect = toolbarItems.getBoundingClientRect();
// -7 for the controls padding
tabs.style.maxHeight = toolbarRect.height - 7 + "px";
// -5 for the controls padding
tabs.style.maxHeight = toolbarRect.height - 5 + "px";
console.info("ZenThemeModifier: set tabs max-height to", toolbarRect.height + "px");
},