Bläddra i källkod

enhance: small style tweaks

Devon Zuegel 3 år sedan
förälder
incheckning
9a56586e37

+ 0 - 5
resources/css/tooltip.css

@@ -661,8 +661,3 @@
 .tippy-hover {
   cursor: pointer;
 }
-
-.tippy-popper .tippy-tooltip.extra-padding-y .py-1 {
-  padding-top: 0.5rem;
-  padding-bottom: 0.5rem;
-}

+ 0 - 3
src/main/frontend/components/header.cljs

@@ -31,7 +31,6 @@
    {:html [:div.text-sm.font-medium (ui/keyboard-shortcut-from-config :go/home)]
     :interactive true
     :position    "left"
-    :theme       "extra-padding-y"
     :arrow       true}
    [:a.button
     {:href     (rfe/href :home)
@@ -135,7 +134,6 @@
     {:html [:div.text-sm.font-medium (ui/keyboard-shortcut-from-config :go/backward)]
      :interactive true
      :position    "bottom"
-     :theme       "extra-padding-y"
      :arrow       true}
     [:a.it.navigation.nav-left.button
      {:title "Go back" :on-click #(js/window.history.back)}
@@ -145,7 +143,6 @@
     {:html [:div.text-sm.font-medium (ui/keyboard-shortcut-from-config :go/forward)]
      :interactive true
      :position    "bottom"
-     :theme       "extra-padding-y"
      :arrow       true}
     [:a.it.navigation.nav-right.button
      {:title "Go forward" :on-click #(js/window.history.forward)}

+ 0 - 1
src/main/frontend/components/right_sidebar.cljs

@@ -26,7 +26,6 @@
       {:html [:div.text-sm.font-medium
               (ui/keyboard-shortcut-from-config :ui/toggle-right-sidebar)]
        :position    "left"
-       :theme       "extra-padding-y"
        :interactive true
        :arrow       true}
 

+ 0 - 2
src/main/frontend/components/search.cljs

@@ -279,7 +279,6 @@
                       (ui/keyboard-shortcut-from-config :go/search-in-page)]
                :arrow           true
                :interactive     true
-               :theme           "extra-padding-y"
                }
               [:div.flex-row.flex.align-items
                [:div.mr-2 "Search in page:"]
@@ -293,7 +292,6 @@
                                  "Tip: " [:code (util/->platform-shortcut "Ctrl + Shift + p")] " to open the commands palette"]
                           :interactive     true
                           :arrow           true
-                          :theme           "extra-padding-y"
                           }
                          [:a.inline-block.fade-link
                           {:style {:margin-left 12}

+ 1 - 0
src/main/frontend/modules/shortcut/data_helper.cljs

@@ -99,6 +99,7 @@
       (str/replace "shift+/" "?")
       (str/replace "left" "←")
       (str/replace "right" "→")
+      (str/replace "+" " ")
       (str/replace "open-square-bracket" "[")
       (str/replace "close-square-bracket" "]")
       (str/lower-case)))

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

@@ -465,7 +465,7 @@
   (let [default-binding (:binding (get shortcut-config/all-default-keyboard-shortcuts shortcut-name))
         custom-binding  (when (state/shortcuts) (get (state/shortcuts) shortcut-name))
         binding         (or custom-binding default-binding)]
-    (render-keyboard-shortcut (shortcut-helper/decorate-binding binding))))
+    (shortcut-helper/decorate-binding binding)))
 
 (defonce modal-show? (atom false))
 (rum/defc modal-overlay
@@ -721,7 +721,7 @@
                              (when-let [html (:html opts)]
                                (if (fn? html)
                                  (html)
-                                 [:div.px-2.py-2
+                                 [:div.px-2.py-1
                                   html]))
                              (catch js/Error e
                                (log/error :exception e)