Skip to content

Commit

Permalink
Merge pull request #17855 from calixteman/bug1888657
Browse files Browse the repository at this point in the history
Avoid useless CSS animation when nothing is done (bug 1888657)
  • Loading branch information
calixteman authored Apr 1, 2024
2 parents 3b87c31 + d3a613d commit 26466b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/viewer.css
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ body {
font-style: normal;
}
.loadingInput:has(> &[data-status="pending"])::after {
display: block;
visibility: visible;
}
&[data-status="notFound"] {
Expand Down Expand Up @@ -1117,6 +1118,7 @@ a:is(.toolbarButton, .secondaryToolbarButton)[href="#"] {
/*#endif*/

.loadingInput:has(> &.loading)::after {
display: block;
visibility: visible;

transition-property: visibility;
Expand All @@ -1128,6 +1130,7 @@ a:is(.toolbarButton, .secondaryToolbarButton)[href="#"] {
&::after {
position: absolute;
visibility: hidden;
display: none;
top: calc(50% - 8px);
width: 16px;
height: 16px;
Expand Down

0 comments on commit 26466b5

Please sign in to comment.