mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-16 14:56:14 +00:00
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:
@@ -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',
|
||||
|
Reference in New Issue
Block a user