mirror of
https://github.com/zen-browser/desktop.git
synced 2026-01-08 14:23:25 +00:00
chore: Apply requested changes to https://github.com/zen-browser/desktop/pull/10383, b=no-bug, c=glance
This commit is contained in:
@@ -172,21 +172,12 @@
|
||||
const parentSidebarContainer = this.#currentParentTab.linkedBrowser.closest(
|
||||
'.browserSidebarContainer'
|
||||
);
|
||||
const isWindows = AppConstants.platform === 'win';
|
||||
const backgroundOpenAnimationProps = isWindows
|
||||
? {
|
||||
// Skip blur on Windows, keep a subtle dim/scale to preserve the visual cue
|
||||
scale: [1, 0.98],
|
||||
opacity: [1, 0.85],
|
||||
}
|
||||
: {
|
||||
scale: [1, 0.98],
|
||||
backdropFilter: ['blur(0px)', 'blur(5px)'],
|
||||
opacity: [1, 0.5],
|
||||
};
|
||||
gZenUIManager.motion.animate(
|
||||
parentSidebarContainer,
|
||||
backgroundOpenAnimationProps,
|
||||
{
|
||||
scale: [1, 0.98],
|
||||
opacity: [1, 0.8],
|
||||
},
|
||||
{
|
||||
duration: 0.4,
|
||||
type: 'spring',
|
||||
@@ -331,22 +322,13 @@
|
||||
sidebarButtons.remove();
|
||||
});
|
||||
}
|
||||
const isWindows = AppConstants.platform === 'win';
|
||||
const backgroundCloseAnimationProps = isWindows
|
||||
? {
|
||||
// Mirror open animation without blur on Windows
|
||||
scale: [0.98, 1],
|
||||
opacity: [0.85, 1],
|
||||
}
|
||||
: {
|
||||
scale: [0.98, 1],
|
||||
backdropFilter: ['blur(5px)', 'blur(0px)'],
|
||||
opacity: [0.5, 1],
|
||||
};
|
||||
gZenUIManager.motion
|
||||
.animate(
|
||||
browserSidebarContainer,
|
||||
backgroundCloseAnimationProps,
|
||||
{
|
||||
scale: [0.98, 1],
|
||||
opacity: [0.8, 1],
|
||||
},
|
||||
{
|
||||
duration: 0.4,
|
||||
type: 'spring',
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
display: flex;
|
||||
z-index: 999;
|
||||
|
||||
top: 0;
|
||||
top: 15px;
|
||||
padding: 12px;
|
||||
gap: 12px;
|
||||
max-width: 56px;
|
||||
|
||||
Reference in New Issue
Block a user