mirror of
https://github.com/zen-browser/desktop.git
synced 2026-01-21 20:30:44 +00:00
feat: Improved update animation rendering, b=no-bug, c=common, folders
This commit is contained in:
@@ -173,26 +173,30 @@
|
||||
return;
|
||||
}
|
||||
Services.prefs.setStringPref('zen.updates.last-build-id', appID);
|
||||
if (gReduceMotion) return;
|
||||
await gZenWorkspaces.promiseInitialized;
|
||||
const appWrapper = document.getElementById('zen-main-app-wrapper');
|
||||
const element = document.createElement('div');
|
||||
element.id = 'zen-update-animation';
|
||||
appWrapper.appendChild(element);
|
||||
gZenUIManager.motion
|
||||
.animate(
|
||||
'#zen-update-animation',
|
||||
{
|
||||
top: ['100%', '-50%'],
|
||||
opacity: [0.5, 1],
|
||||
},
|
||||
{
|
||||
duration: 0.35,
|
||||
}
|
||||
)
|
||||
.then(() => {
|
||||
element.remove();
|
||||
});
|
||||
requestIdleCallback(() => {
|
||||
if (gReduceMotion) {
|
||||
return;
|
||||
}
|
||||
appWrapper.appendChild(element);
|
||||
gZenUIManager.motion
|
||||
.animate(
|
||||
'#zen-update-animation',
|
||||
{
|
||||
top: ['100%', '-50%'],
|
||||
opacity: [0.5, 1],
|
||||
},
|
||||
{
|
||||
duration: 0.35,
|
||||
}
|
||||
)
|
||||
.then(() => {
|
||||
element.remove();
|
||||
});
|
||||
});
|
||||
}
|
||||
})();
|
||||
|
||||
|
||||
@@ -685,6 +685,7 @@
|
||||
}
|
||||
|
||||
const canInsertBefore =
|
||||
!isFromToolbar &&
|
||||
!triggerTab.hasAttribute('zen-essential') &&
|
||||
!triggerTab?.group?.hasAttribute('split-view-group') &&
|
||||
this.canDropElement({ isZenFolder: true }, triggerTab);
|
||||
|
||||
Reference in New Issue
Block a user