Skip to content

Commit

Permalink
InlineProgressSpan: delay showing the progress
Browse files Browse the repository at this point in the history
Summary: For fast (<0.9s) operations do not show the progress to make the UI feel a bit snappier.

Reviewed By: evangrayk

Differential Revision: D54819887

fbshipit-source-id: c2acf9f892c61d0e1e8fc907ed574ee3e5bdf47b
  • Loading branch information
quark-zju authored and facebook-github-bot committed Mar 12, 2024
1 parent 04c357a commit 3f62a98
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions addons/isl/src/CommitTreeList.css
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,24 @@
margin-right: var(--halfpad);
}

@media (prefers-reduced-motion: no-preference) {
@keyframes delayFadeIn {
0% {
opacity: 0;
}
90% {
opacity: 0;
}
100% {
opacity: 1;
}
}

.commit-inline-operation-progress {
animation: delayFadeIn 1s ease-in-out;
}
}

.goto-button .codicon {
margin-left: var(--halfpad);
}
Expand Down

0 comments on commit 3f62a98

Please sign in to comment.