fix: fix height on account card component (#18329)

Signed-off-by: Brian Sztamfater <brian@status.im>
This commit is contained in:
Brian Sztamfater 2024-01-05 14:11:11 -03:00 committed by GitHub
parent 1919094b46
commit fc72ba6a1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View File

@ -11,8 +11,9 @@
colors/white))
(defn card
[{:keys [customization-color type theme pressed?]}]
{:width 162
[{:keys [customization-color type theme pressed? metrics?]}]
{:width 161
:height (if metrics? 88 68)
:background-color (when (not= :watch-only type)
(colors/theme-colors
(colors/resolve-color customization-color

View File

@ -21,7 +21,8 @@
:style (style/card {:customization-color customization-color
:type type
:theme theme
:pressed? false})}
:pressed? false
:metrics? metrics?})}
[rn/view {:style style/loader-container}
[rn/view
{:style (assoc (style/loader-view {:width 16
@ -113,7 +114,8 @@
:style (style/card {:customization-color customization-color
:type type
:theme theme
:pressed? @pressed?})
:pressed? @pressed?
:metrics? metrics?})
:on-press on-press}
(when (and customization-color (and (not watch-only?) (not missing-keypair?)))
[customization-colors/overlay