fix: fix height on account card component (#18329)
Signed-off-by: Brian Sztamfater <brian@status.im>
This commit is contained in:
parent
1919094b46
commit
fc72ba6a1e
|
@ -11,8 +11,9 @@
|
||||||
colors/white))
|
colors/white))
|
||||||
|
|
||||||
(defn card
|
(defn card
|
||||||
[{:keys [customization-color type theme pressed?]}]
|
[{:keys [customization-color type theme pressed? metrics?]}]
|
||||||
{:width 162
|
{:width 161
|
||||||
|
:height (if metrics? 88 68)
|
||||||
:background-color (when (not= :watch-only type)
|
:background-color (when (not= :watch-only type)
|
||||||
(colors/theme-colors
|
(colors/theme-colors
|
||||||
(colors/resolve-color customization-color
|
(colors/resolve-color customization-color
|
||||||
|
|
|
@ -21,7 +21,8 @@
|
||||||
:style (style/card {:customization-color customization-color
|
:style (style/card {:customization-color customization-color
|
||||||
:type type
|
:type type
|
||||||
:theme theme
|
:theme theme
|
||||||
:pressed? false})}
|
:pressed? false
|
||||||
|
:metrics? metrics?})}
|
||||||
[rn/view {:style style/loader-container}
|
[rn/view {:style style/loader-container}
|
||||||
[rn/view
|
[rn/view
|
||||||
{:style (assoc (style/loader-view {:width 16
|
{:style (assoc (style/loader-view {:width 16
|
||||||
|
@ -113,7 +114,8 @@
|
||||||
:style (style/card {:customization-color customization-color
|
:style (style/card {:customization-color customization-color
|
||||||
:type type
|
:type type
|
||||||
:theme theme
|
:theme theme
|
||||||
:pressed? @pressed?})
|
:pressed? @pressed?
|
||||||
|
:metrics? metrics?})
|
||||||
:on-press on-press}
|
:on-press on-press}
|
||||||
(when (and customization-color (and (not watch-only?) (not missing-keypair?)))
|
(when (and customization-color (and (not watch-only?) (not missing-keypair?)))
|
||||||
[customization-colors/overlay
|
[customization-colors/overlay
|
||||||
|
|
Loading…
Reference in New Issue