mirror of
https://github.com/zen-browser/desktop.git
synced 2026-03-29 11:51:51 +00:00
feat: Expand pinned section when a tab is pinned, p=#11848
This commit is contained in:
@@ -245,6 +245,13 @@ export class nsZenWorkspace extends MozXULElement {
|
||||
this.onGradientCacheChanged = this.#onGradientCacheChanged.bind(this);
|
||||
window.addEventListener('ZenGradientCacheChanged', this.onGradientCacheChanged);
|
||||
|
||||
this.pinnedTabsContainer.addEventListener('TabPinned', () => {
|
||||
// If a tab is pinned and the pinned tabs section is collapsed, uncollapse it.
|
||||
if (this.collapsiblePins.collapsed) {
|
||||
this.collapsiblePins.collapsed = false;
|
||||
}
|
||||
});
|
||||
|
||||
const tabPinCallback = () => {
|
||||
this.checkPinsExistence();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user