fix: loader direction

pull/2400/head
Tienson Qin 2021-07-09 00:25:07 +08:00
parent 9f3ad93ab7
commit 91a0bf1eeb
2 changed files with 5 additions and 1 deletions

View File

@ -728,6 +728,10 @@ li p:last-child,
-webkit-animation: spin 2s infinite linear;
}
.loader-reverse {
-webkit-animation: spin 2s infinite linear reverse;
}
.canceled,
.done {
text-decoration: line-through;

View File

@ -99,7 +99,7 @@
(when-not (= repo config/local-repo)
(if (and nfs-repo? (nfs-handler/supported?))
(let [syncing? (state/sub :graph/syncing?)]
[:div.opacity-60.refresh.hover:opacity-100 {:class (if syncing? "loader" "initial")}
[:div.opacity-60.refresh.hover:opacity-100 {:class (if syncing? "loader-reverse" "initial")}
[:a.block.p-2
{:on-click #(nfs-handler/refresh! repo refresh-cb)
:title (str "Import files from the local directory: " (config/get-local-dir repo) ".\nVersion: "