Skip to content

Commit

Permalink
enhance: small style tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
devonzuegel committed Nov 17, 2021
1 parent ff4bee8 commit 9a56586
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 13 deletions.
5 changes: 0 additions & 5 deletions resources/css/tooltip.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
3 changes: 0 additions & 3 deletions src/main/frontend/components/header.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)}
Expand All @@ -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)}
Expand Down
1 change: 0 additions & 1 deletion src/main/frontend/components/right_sidebar.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down
2 changes: 0 additions & 2 deletions src/main/frontend/components/search.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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:"]
Expand All @@ -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}
Expand Down
1 change: 1 addition & 0 deletions src/main/frontend/modules/shortcut/data_helper.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down
4 changes: 2 additions & 2 deletions src/main/frontend/ui.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 9a56586

Please sign in to comment.