mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
style: Adjust toolbar height calculation and update workspace button visibility
This commit is contained in:
@@ -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) {
|
||||
|
@@ -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']) {
|
||||
|
Reference in New Issue
Block a user