fix: Fixed an issue with top toolbar not able to be hovered, b=(no-bug), c=common, compact-mode, tabs, workspaces

This commit is contained in:
Mr. M
2025-05-20 19:02:44 +02:00
parent 9982b1af34
commit d3ec41d73f
8 changed files with 73 additions and 56 deletions

View File

@@ -2273,15 +2273,17 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
if (shouldAnimate) {
gZenUIManager._preventToolbarRebuild = true;
gZenUIManager.updateTabsToolbar();
let previousBackgroundOpacity = document.documentElement.style.getPropertyValue(
'--zen-background-opacity'
);
if (previousBackgroundOpacity === '1') {
previousBackgroundOpacity = '0';
}
animations.push(
gZenUIManager.motion.animate(
document.documentElement,
{
'--zen-background-opacity': [
document.documentElement.style.getPropertyValue('--zen-background-opacity'),
'1',
],
'--zen-background-opacity': [previousBackgroundOpacity, '1'],
},
{
type: 'spring',