From b023767fd10a8a173052967f39492c7999fa4d99 Mon Sep 17 00:00:00 2001 From: Calixte Denizet Date: Fri, 29 Mar 2024 14:45:06 +0100 Subject: [PATCH] Avoid useless CSS animation when nothing is done (bug 1888657) --- web/viewer.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/viewer.css b/web/viewer.css index 43325ad7d63f95..58fac5aeff514f 100644 --- a/web/viewer.css +++ b/web/viewer.css @@ -1117,6 +1117,7 @@ a:is(.toolbarButton, .secondaryToolbarButton)[href="#"] { /*#endif*/ .loadingInput:has(> &.loading)::after { + display: block; visibility: visible; transition-property: visibility; @@ -1128,6 +1129,7 @@ a:is(.toolbarButton, .secondaryToolbarButton)[href="#"] { &::after { position: absolute; visibility: hidden; + display: none; top: calc(50% - 8px); width: 16px; height: 16px;