Browse Source

enhance: add or between local directory and github repo

Tienson Qin 4 years ago
parent
commit
8017c500e2
1 changed files with 5 additions and 4 deletions
  1. 5 4
      src/main/frontend/components/widgets.cljs

+ 5 - 4
src/main/frontend/components/widgets.cljs

@@ -36,7 +36,7 @@
   [state]
   (let [repo (get state ::repo)]
     (rum/with-context [[t] i18n/*tongue-context*]
-      [:div.p-8.flex.flex-col
+      [:div.flex.flex-col
        [:div.w-full.mx-auto
         [:div
          [:div
@@ -66,8 +66,8 @@
 (rum/defcs add-local-directory
   []
   (rum/with-context [[t] i18n/*tongue-context*]
-    [:div.p-8.flex.flex-col
-     [:h1.title "Add Local directory"]
+    [:div.flex.flex-col
+     [:h1.title "Add a graph"]
      (let [nfs-supported? (nfs/supported?)]
        [:div.cp__widgets-open-local-directory
         [:div.select-file-wrap.cursor
@@ -105,6 +105,7 @@
                        nil))
         available-graph (->> (set graph-types)
                              (keep generate-f)
-                             (vec))]
+                             (vec)
+                             (interpose [:b.mt-10.mb-5.opacity-50 "OR"]))]
     (rum/with-context [[t] i18n/*tongue-context*]
       [:div.p-8.flex.flex-col available-graph])))