1
0
Fork 1
mirror of https://github.com/zen-browser/desktop.git synced 2025-07-10 02:06:24 +02:00

feat: Improved workspace creation animations, b=no-bug, c=workspaces

This commit is contained in:
mr. m 2025-06-11 21:59:03 +02:00
parent 289e84b75d
commit ce75bc152a
No known key found for this signature in database
GPG key ID: 419302196C23B258
4 changed files with 18 additions and 12 deletions

View file

@ -86,8 +86,6 @@
return;
}
document.documentElement.setAttribute('zen-creating-workspace', 'true');
this.appendChild(this.constructor.fragment);
this.initializeAttributeInheritance();
@ -177,6 +175,7 @@
{
y: [20, 0],
opacity: [0, 1],
filter: ['blur(2px)', 'blur(0)'],
},
{
duration: 0.6,
@ -197,16 +196,16 @@
workspace.containerTabId = this.currentProfile;
await gZenWorkspaces.saveWorkspace(workspace);
if (gZenVerticalTabsManager._canReplaceNewTab) {
BrowserCommands.openTab();
}
await this.#cleanup();
await gZenWorkspaces._organizeWorkspaceStripLocations(workspace, true);
await gZenWorkspaces.updateTabsContainers();
gBrowser.tabContainer._invalidateCachedTabs();
if (gZenVerticalTabsManager._canReplaceNewTab) {
BrowserCommands.openTab();
}
}
async onCancelButtonCommand() {
@ -270,6 +269,7 @@
{
y: [0, 20],
opacity: [1, 0],
filter: ['blur(0)', 'blur(2px)'],
},
{
duration: 0.4,