enhance: ensure minium height for search panel

This commit is contained in:
leizhe
2021-11-18 19:04:24 +08:00
parent 2a141de553
commit 8b41bfd88c

View File

@@ -20,7 +20,8 @@
[frontend.context.i18n :as i18n]
[frontend.date :as date]
[reitit.frontend.easy :as rfe]
[frontend.modules.shortcut.core :as shortcut]))
[frontend.modules.shortcut.core :as shortcut]
[frontend.mobile.util :as mobile-util]))
(defn- partition-between
"Split `coll` at positions where `pred?` is true."
@@ -362,6 +363,8 @@
(rum/with-context [[t] i18n/*tongue-context*]
(let [input (::input state)]
[: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