mirror of
https://github.com/zen-browser/desktop.git
synced 2026-05-01 19:45:09 +00:00
chore: Revert to the new folder animation, p=#10783, c=folders
This commit is contained in:
@@ -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
@@ -207,7 +207,7 @@ zen-folder {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
& > .tab-group-container {
|
||||
&:not([has-active]) > .tab-group-container {
|
||||
overflow-y: clip;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user