Pārlūkot izejas kodu

fix: mobile button style on iOS

Tienson Qin 4 gadi atpakaļ
vecāks
revīzija
24bd132b96

+ 2 - 1
src/main/frontend/components/widgets.cljs

@@ -116,7 +116,8 @@
             [:div.font-bold.mb-2 "I need some help"]
             [:p "👋 Join our discord group to chat with the makers and our helpful community members."]
             (ui/button "Join the community"
-              :href "https://discord.gg/KpN4eHY")]]]
+              :href "https://discord.gg/KpN4eHY"
+              :target "_blank")]]]
          [:div.cp__widgets-open-local-directory
           [:div.select-file-wrap.cursor
            (when nfs-supported?

+ 2 - 2
src/main/frontend/ui.cljs

@@ -46,7 +46,7 @@
 
     (mobile-util/native-ipad?)
     15
-    
+
     :else
     0))
 
@@ -159,7 +159,7 @@
         klass (if small? (str klass ".px-2.py-1") klass)
         klass (if large? (str klass ".text-base") klass)]
     (if href
-      [:a.ui__button.is-link
+      [:button.ui__button.is-link
        (merge
         {:type  "button"
          :class (str (util/hiccup->class klass) " " class)}