From d3a613dd5b0454027c9ceff147de424e7d0060ce 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/viewer.css b/web/viewer.css index 43325ad7d..56a32ad65 100644 --- a/web/viewer.css +++ b/web/viewer.css @@ -501,6 +501,7 @@ body { font-style: normal; } .loadingInput:has(> &[data-status="pending"])::after { + display: block; visibility: visible; } &[data-status="notFound"] { @@ -1117,6 +1118,7 @@ a:is(.toolbarButton, .secondaryToolbarButton)[href="#"] { /*#endif*/ .loadingInput:has(> &.loading)::after { + display: block; visibility: visible; transition-property: visibility; @@ -1128,6 +1130,7 @@ a:is(.toolbarButton, .secondaryToolbarButton)[href="#"] { &::after { position: absolute; visibility: hidden; + display: none; top: calc(50% - 8px); width: 16px; height: 16px;