fix: streamline style clearing in ZenGlanceManager and update version numbers in surfer.json

This commit is contained in:
mr. M
2025-04-05 04:15:18 +02:00
parent a7e217152b
commit f2c6d0a6b9
14 changed files with 425 additions and 672 deletions

View File

@@ -228,10 +228,8 @@
_clearContainerStyles(container) {
const inset = container.style.inset;
window.requestAnimationFrame(() => {
container.removeAttribute('style');
container.style.inset = inset;
});
container.removeAttribute('style');
container.style.inset = inset;
}
closeGlance({
@@ -560,12 +558,13 @@
async fullyOpenGlance({ forSplit = false } = {}) {
this.animatingFullOpen = true;
this.#currentTab.removeAttribute('zen-glance-tab');
this.#currentTab.setAttribute('zen-dont-split-glance', true);
gBrowser._insertTabAtIndex(this.#currentTab, {
index: this.getTabPosition(this.#currentTab),
});
this.#currentTab.removeAttribute('zen-glance-tab');
this._clearContainerStyles(this.browserWrapper);
this.browserWrapper.removeAttribute('has-finished-animation');
this.browserWrapper.setAttribute('animate-full', true);