From 1e09b3fb4dfdd6a357746084ae4485195ae453aa Mon Sep 17 00:00:00 2001 From: Andrey Bochkarev <50177704+octaviusz@users.noreply.github.com> Date: Fri, 9 Jan 2026 04:18:10 +0300 Subject: [PATCH] feat: Expand pinned section when a tab is pinned, p=#11848 --- src/zen/workspaces/ZenWorkspace.mjs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/zen/workspaces/ZenWorkspace.mjs b/src/zen/workspaces/ZenWorkspace.mjs index 2eb6e9438..5cef801f4 100644 --- a/src/zen/workspaces/ZenWorkspace.mjs +++ b/src/zen/workspaces/ZenWorkspace.mjs @@ -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(); };