소스 검색

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