mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
Refactor CSS transitions and fix console log statements for clarity
This commit is contained in:
@@ -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] {
|
||||
|
@@ -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);
|
||||
|
@@ -246,7 +246,7 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
|
||||
paddingLeft: 0,
|
||||
},
|
||||
{
|
||||
duration: 0.08 ,
|
||||
duration: 0.08,
|
||||
easing: 'ease-out',
|
||||
}
|
||||
),
|
||||
|
@@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user