chore: Revert to the new folder animation, p=#10783, c=folders

This commit is contained in:
mr. m
2025-10-12 11:37:18 +02:00
committed by GitHub
parent 6a6fd4be1c
commit 07661ea19a
6 changed files with 693 additions and 685 deletions

View File

@@ -117,6 +117,10 @@
return activeGroups;
}
get childActiveGroups() {
return Array.from(this.querySelectorAll('zen-folder[has-active]'));
}
rename() {
if (!document.documentElement.hasAttribute('zen-sidebar-expanded')) {
return;
@@ -240,16 +244,18 @@
}
async #unloadAllActiveTabs(event, noClose = false) {
for (const tab of this.tabs) {
await gZenPinnedTabManager._onCloseTabShortcut(event, tab, { noClose });
}
await gZenPinnedTabManager.onCloseTabShortcut(event, this.tabs, {
noClose,
alwaysUnload: true,
folderToUnload: this,
});
this.activeTabs = [];
}
on_click(event) {
if (event.target === this.resetButton) {
event.stopPropagation();
this.#unloadAllActiveTabs(event);
this.unloadAllTabs(event);
return;
}
super.on_click(event);

File diff suppressed because it is too large Load Diff

View File

@@ -207,7 +207,7 @@ zen-folder {
display: flex;
}
& > .tab-group-container {
&:not([has-active]) > .tab-group-container {
overflow-y: clip;
}
}