Fixed tab overlflow changing the height of the web view

This commit is contained in:
mr. M
2024-10-19 18:41:31 +02:00
parent 36104652cd
commit 83b077d5f3
3 changed files with 5 additions and 3 deletions

View File

@@ -222,9 +222,10 @@ pref("privacy.resistFingerprinting.letterboxing.dimensions", "");
pref("devtools.accessibility.enabled", false); pref("devtools.accessibility.enabled", false);
// Enable GPU by default // Enable GPU by default
pref('gfx.webrender.all', true); //pref('gfx.webrender.all', true);
pref("gfx.canvas.accelerated", true); pref("gfx.canvas.accelerated", true);
pref("media.hardware-video-decoding.enabled", true); pref("media.hardware-video-decoding.enabled", true);
pref("layers.gpu-process.enabled", true);
// VAAPI/FFMPEG is Linux only // VAAPI/FFMPEG is Linux only
#ifdef XP_UNIX #ifdef XP_UNIX

View File

@@ -71,7 +71,7 @@
tabs.style.maxHeight = '0px'; // reset to 0 tabs.style.maxHeight = '0px'; // reset to 0
const toolbarRect = toolbarItems.getBoundingClientRect(); const toolbarRect = toolbarItems.getBoundingClientRect();
// -5 for the controls padding // -5 for the controls padding
let totalHeight = toolbarRect.height - this.contentElementSeparation; let totalHeight = toolbarRect.height - (this.contentElementSeparation * 2) - 5;
// remove the height from other elements that aren't hidden // remove the height from other elements that aren't hidden
const otherElements = document.querySelectorAll('#tabbrowser-tabs > *:not([hidden="true"])'); const otherElements = document.querySelectorAll('#tabbrowser-tabs > *:not([hidden="true"])');
for (let tab of otherElements) { for (let tab of otherElements) {

View File

@@ -119,10 +119,11 @@
#zen-sidebar-icons-wrapper { #zen-sidebar-icons-wrapper {
background: transparent; background: transparent;
padding: 0;
gap: 5px; gap: 5px;
align-items: center; align-items: center;
padding-top: var(--zen-element-separation);
& > toolbarbutton:not(#zen-workspaces-button) { & > toolbarbutton:not(#zen-workspaces-button) {
padding: 0 !important; padding: 0 !important;
} }