fix: vertical align texts in multiline input on iOS (#19565)
* fix: vertical align texts in multiline input on iOS Signed-off-by: yqrashawn <namy.19@gmail.com> * fix(copy): Chat Key -> Chatkey --------- Signed-off-by: yqrashawn <namy.19@gmail.com>
This commit is contained in:
parent
6ba89d0c6e
commit
f8cc85f5e2
|
@ -1,7 +1,8 @@
|
||||||
(ns quo.components.inputs.input.style
|
(ns quo.components.inputs.input.style
|
||||||
(:require
|
(:require
|
||||||
[quo.components.markdown.text :as text]
|
[quo.components.markdown.text :as text]
|
||||||
[quo.foundations.colors :as colors]))
|
[quo.foundations.colors :as colors]
|
||||||
|
[react-native.platform :as platform]))
|
||||||
|
|
||||||
(defn variants-colors
|
(defn variants-colors
|
||||||
[blur? theme]
|
[blur? theme]
|
||||||
|
@ -97,9 +98,12 @@
|
||||||
(assoc base-props
|
(assoc base-props
|
||||||
:text-align-vertical :top
|
:text-align-vertical :top
|
||||||
:line-height 22)
|
:line-height 22)
|
||||||
(assoc base-props
|
(cond-> base-props
|
||||||
:height (if small? 30 38)
|
:always
|
||||||
:line-height nil))))
|
(assoc :height (if small? 30 38)
|
||||||
|
:line-height nil)
|
||||||
|
platform/ios?
|
||||||
|
(assoc :padding-top (+ padding 2))))))
|
||||||
|
|
||||||
(defn right-icon-touchable-area
|
(defn right-icon-touchable-area
|
||||||
[small?]
|
[small?]
|
||||||
|
|
Loading…
Reference in New Issue