parent
a06413b6f7
commit
c8b5e39dc1
|
@ -29,9 +29,12 @@
|
|||
:text-align :center
|
||||
:margin-bottom 16})
|
||||
|
||||
(defn wizard-text [height]
|
||||
(merge {:color colors/gray
|
||||
:text-align :center}
|
||||
(def wizard-text
|
||||
{:color colors/gray
|
||||
:text-align :center})
|
||||
|
||||
(defn wizard-text-with-height [height]
|
||||
(merge wizard-text
|
||||
(when-not (zero? height)
|
||||
{:height height})))
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
:style {:width size
|
||||
:height size}}]])
|
||||
[react/i18n-text {:style styles/wizard-title :key (:title s)}]
|
||||
[react/text {:style (styles/wizard-text @text-height)
|
||||
[react/text {:style (styles/wizard-text-with-height @text-height)
|
||||
:on-layout
|
||||
(fn [^js e]
|
||||
(let [new-height (-> e .-nativeEvent .-layout .-height)]
|
||||
|
|
Loading…
Reference in New Issue