Procházet zdrojové kódy

enhance(css): remove tooltip for `show-brackets`

leizhe před 4 roky
rodič
revize
b985fd53b0
1 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. 3 2
      src/main/frontend/components/settings.cljs

+ 3 - 2
src/main/frontend/components/settings.cljs

@@ -176,8 +176,9 @@
      (ui/toggle show-brackets?
                 config-handler/toggle-ui-show-brackets!
                 true)]]
-   [:div {:style {:text-align "right"}}
-    (ui/render-keyboard-shortcut (shortcut-helper/gen-shortcut-seq :ui/toggle-brackets))]])
+   (when (not (or (util/mobile?) (mobile-util/is-native-platform?)))
+     [:div {:style {:text-align "right"}}
+      (ui/render-keyboard-shortcut (shortcut-helper/gen-shortcut-seq :ui/toggle-brackets))])])
 
 (rum/defcs switch-spell-check-row < rum/reactive
   [state t]