瀏覽代碼

enhance: make loading indicator noticeable for publishing

publishing apps can take awhile to load so we want the loading
to be obvious, not muted
Gabriel Horner 1 年之前
父節點
當前提交
59456464f3
共有 1 個文件被更改,包括 9 次插入4 次删除
  1. 9 4
      src/main/frontend/components/container.cljs

+ 9 - 4
src/main/frontend/components/container.cljs

@@ -581,10 +581,15 @@
          nil
 
          db-restoring?
-         [:div.space-y-2
-          (shui/skeleton {:class "h-8 w-1/3 mb-8"})
-          (shui/skeleton {:class "h-6 w-full"})
-          (shui/skeleton {:class "h-6 w-full"})]
+         (if config/publishing?
+           [:div.space-y-2
+            (shui/skeleton {:class "h-8 w-1/3 mb-8 bg-gray-400"})
+            (shui/skeleton {:class "h-6 w-full bg-gray-400"})
+            (shui/skeleton {:class "h-6 w-full bg-gray-400"})]
+           [:div.space-y-2
+            (shui/skeleton {:class "h-8 w-1/3 mb-8"})
+            (shui/skeleton {:class "h-6 w-full"})
+            (shui/skeleton {:class "h-6 w-full"})])
 
          :else
          [:div