mirror of
https://github.com/zen-browser/desktop.git
synced 2025-07-09 19:05:29 +02:00
Adjust tab height calculations and improve icon state handling in ZenStartup and ZenPinnedTabManager
This commit is contained in:
parent
54f5042c3c
commit
6d5dcbe89f
3 changed files with 38 additions and 17 deletions
|
@ -73,8 +73,9 @@
|
|||
const tabs = document.getElementById('tabbrowser-arrowscrollbox');
|
||||
tabs.style.maxHeight = '0px'; // reset to 0
|
||||
const toolbarRect = toolbarItems.getBoundingClientRect();
|
||||
let height = toolbarRect.height;
|
||||
// -5 for the controls padding
|
||||
let totalHeight = toolbarRect.height - (this.contentElementSeparation) - 10;
|
||||
let totalHeight = toolbarRect.height - (this.contentElementSeparation) - 45;
|
||||
// remove the height from other elements that aren't hidden
|
||||
const otherElements = document.querySelectorAll('#tabbrowser-tabs > *:not([hidden="true"])');
|
||||
for (let tab of otherElements) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue