Skip to content

Commit

Permalink
style: Adjust toolbar height calculation and update workspace button …
Browse files Browse the repository at this point in the history
…visibility
  • Loading branch information
mauro-balades committed Nov 8, 2024
1 parent 871e529 commit cf1e468
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/browser/base/content/ZenStartup.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 1 addition & 3 deletions src/browser/base/content/zen-styles/zen-workspaces.css
Original file line number Diff line number Diff line change
Expand Up @@ -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']) {
Expand Down

0 comments on commit cf1e468

Please sign in to comment.