chore: Apply requested changes to https://github.com/zen-browser/desktop/pull/10383, b=no-bug, c=glance

This commit is contained in:
mr. m
2025-09-16 00:28:29 +02:00
parent 958f0ac78b
commit 6414cb7129
2 changed files with 9 additions and 27 deletions

View File

@@ -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',

View File

@@ -9,7 +9,7 @@
display: flex;
z-index: 999;
top: 0;
top: 15px;
padding: 12px;
gap: 12px;
max-width: 56px;