mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 23:05:30 +02:00
Refactor ZenSidebarManager to adjust parentRelativeHeight calculation
This commit is contained in:
parent
0f775df5e6
commit
72396b8f55
2 changed files with 3 additions and 3 deletions
|
@ -344,14 +344,14 @@ var ZenWorkspaces = {
|
|||
button.removeAttribute('hidden');
|
||||
return;
|
||||
}
|
||||
let browserTabs = document.getElementById('tabbrowser-tabs');
|
||||
const nextSibling = document.getElementById('zen-sidepanel-button');
|
||||
let button = document.createElement('toolbarbutton');
|
||||
button.id = 'zen-workspaces-button';
|
||||
button.className = 'toolbarbutton-1 chromeclass-toolbar-additional';
|
||||
button.setAttribute('label', 'Workspaces');
|
||||
button.setAttribute('tooltiptext', 'Workspaces');
|
||||
button.onclick = this.openWorkspacesDialog.bind(this);
|
||||
browserTabs.insertAdjacentElement('beforebegin', button);
|
||||
nextSibling.before(button);
|
||||
},
|
||||
|
||||
async _updateWorkspacesButton() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue