gh-13868: Fixed tabs getting clipped when collapsing folders (gh-13869)

This commit is contained in:
mr. m
2026-05-26 12:00:14 +02:00
committed by GitHub
parent 346219c3b4
commit b94dd3b927

View File

@@ -1566,7 +1566,7 @@ class nsZenFolders extends nsZenDOMOperatedFeature {
const tabsContainer = group.groupContainer;
tabsContainer.removeAttribute("hidden");
tabsContainer.style.overflow = "hidden";
tabsContainer.style.overflowY = "hidden";
const groupStart = group.groupStartElement;
const itemsToShow = this.#normalizeGroupItems(group.childGroupsAndTabs);
@@ -1615,7 +1615,7 @@ class nsZenFolders extends nsZenDOMOperatedFeature {
}
const afterMarginTop = () => {
tabsContainer.style.overflow = "";
tabsContainer.style.overflowY = "";
if (group.hasAttribute("has-active")) {
const activeTabs = group.activeTabs;
const folders = new Map();
@@ -1859,14 +1859,14 @@ class nsZenFolders extends nsZenDOMOperatedFeature {
const tabsContainer = currentGroup.groupContainer;
const groupStart = currentGroup.groupStartElement;
tabsContainer.style.overflow = "clip";
tabsContainer.style.overflowY = "clip";
if (tabsContainer.hasAttribute("hidden")) {
tabsContainer.removeAttribute("hidden");
}
const afterMarginTop = () => {
tabsContainer.style.overflow = "";
tabsContainer.style.overflowY = "";
};
animations.push(
@@ -1972,7 +1972,7 @@ class nsZenFolders extends nsZenDOMOperatedFeature {
const heightContainer = expand
? 0
: this.#calculateHeightShift(tabsContainer, []);
tabsContainer.style.overflow = "clip";
tabsContainer.style.overflowY = "clip";
this.#createAnimation(
groupStart,