fix: ac-cp jumps on mobile

This commit is contained in:
llcc
2022-04-20 11:18:44 +08:00
committed by Tienson Qin
parent a569d38f18
commit 663a3c9632
2 changed files with 7 additions and 5 deletions

View File

@@ -51,3 +51,9 @@
}
}
}
html.is-ios {
.cp__palette-main {
margin-bottom: 0px;
}
}

View File

@@ -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]
@@ -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"