Refactor CSS transitions and fix console log statements for clarity

This commit is contained in:
mr. M
2025-03-10 16:43:05 +01:00
parent 986661b6e8
commit 3972a181e6
4 changed files with 6 additions and 4 deletions

View File

@@ -63,7 +63,9 @@
max-width: 0px;
margin: 0;
overflow: hidden;
transition: max-width 0.2s ease, margin-left 0.2s ease;
transition:
max-width 0.2s ease,
margin-left 0.2s ease;
}
&[waitconfirmation] {

View File

@@ -211,7 +211,7 @@
return;
}
console.log(hasFocused)
console.log(hasFocused);
if (onTabClose && hasFocused && !this.#confirmationTimeout) {
const cancelButton = document.getElementById('zen-glance-sidebar-close');
cancelButton.setAttribute('waitconfirmation', true);

View File

@@ -246,7 +246,7 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
paddingLeft: 0,
},
{
duration: 0.08 ,
duration: 0.08,
easing: 'ease-out',
}
),

View File

@@ -129,7 +129,7 @@ export class ZenGlanceChild extends JSWindowActorChild {
return;
}
this.sendAsyncMessage('ZenGlance:CloseGlance', {
hasFocused: this.contentWindow.document.activeElement !== this.contentWindow.document.body
hasFocused: this.contentWindow.document.activeElement !== this.contentWindow.document.body,
});
}
}