style: Adjust toolbar height calculation and update workspace button visibility

This commit is contained in:
mr. M
2024-11-08 23:56:22 +01:00
parent 871e529bf2
commit cf1e468395
2 changed files with 2 additions and 4 deletions

View File

@@ -75,7 +75,7 @@
const toolbarRect = toolbarItems.getBoundingClientRect();
let height = toolbarRect.height;
// -5 for the controls padding
let totalHeight = toolbarRect.height - (this.contentElementSeparation) - 45;
let totalHeight = toolbarRect.height - (this.contentElementSeparation * 2) - 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) {

View File

@@ -8,9 +8,7 @@
position: relative;
&[dont-show='true'] {
/* We need to keep the button visible to keep the toolbar layout */
opacity: 0;
pointer-events: none;
display: none !important;
}
&:not([as-button='true']) {