Browse Source

fix: loader direction

Tienson Qin 4 years ago
parent
commit
91a0bf1eeb
2 changed files with 5 additions and 1 deletions
  1. 4 0
      resources/css/common.css
  2. 1 1
      src/main/frontend/components/repo.cljs

+ 4 - 0
resources/css/common.css

@@ -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;

+ 1 - 1
src/main/frontend/components/repo.cljs

@@ -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: "