[breaking] changed default layout of the customizable UI

This commit is contained in:
mr. M
2024-10-29 23:42:05 +01:00
parent a08df8f9ef
commit 0552c2f245
6 changed files with 34 additions and 14 deletions

View File

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