no-bug: Dont animate glance image preview opacity (gh-13055)

This commit is contained in:
mr. m
2026-04-02 17:15:47 +02:00
committed by GitHub
parent 92eb6b07c3
commit dba5a0402c
2 changed files with 5 additions and 11 deletions

View File

@@ -507,17 +507,6 @@ class nsZenGlanceManager extends nsZenDOMOperatedFeature {
this.#glances.get(this.#currentGlanceID).elementImageData =
data.elementData;
gZenUIManager.motion.animate(
imageDataElement,
{
opacity: [1, 0],
},
{
duration: this.#GLANCE_ANIMATION_DURATION / 2,
easing: "easeInOut",
}
);
return imageDataElement;
}

View File

@@ -170,6 +170,7 @@
position: absolute;
pointer-events: none;
width: 100%;
height: 100%;
max-width: 100%;
max-height: 100%;
z-index: 0;
@@ -179,6 +180,10 @@
translate: -50% -50%;
background: rgba(255, 255, 255, 0.1);
display: flex;
align-items: center;
justify-content: center;
& image {
width: 100%;
max-width: 100%;