Skip to content

Commit

Permalink
fix: ac-cp jumps on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
llcc authored and tiensonqin committed Apr 21, 2022
1 parent a569d38 commit 663a3c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 6 additions & 0 deletions src/main/frontend/components/command_palette.css
Expand Up @@ -51,3 +51,9 @@
}
}
}

html.is-ios {
.cp__palette-main {
margin-bottom: 0px;
}
}
6 changes: 1 addition & 5 deletions src/main/frontend/components/search.cljs
Expand Up @@ -21,8 +21,7 @@
[frontend.context.i18n :refer [t]]
[frontend.date :as date]
[reitit.frontend.easy :as rfe]
[frontend.modules.shortcut.core :as shortcut]
[frontend.mobile.util :as mobile-util]))
[frontend.modules.shortcut.core :as shortcut]))

(defn highlight-exact-query
[content q]
Expand Down Expand Up @@ -357,9 +356,6 @@
timeout 300
in-page-search? (= search-mode :page)]
[:div.cp__palette.cp__palette-main
(when (mobile-util/is-native-platform?)
{:style {:min-height "50vh"}})

[:div.input-wrap
[:input.cp__palette-input.w-full
{:type "text"
Expand Down

0 comments on commit 663a3c9

Please sign in to comment.