Fix android clipped elevation

Added some air on every card and unified common style

Increase elevation size

Signed-off-by: Gheorghe Pinzaru <feross95@gmail.com>
This commit is contained in:
Gheorghe Pinzaru 2020-01-16 15:02:05 +03:00
parent 59140d971f
commit e088a61247
No known key found for this signature in database
GPG Key ID: C9A094959935A952
2 changed files with 24 additions and 33 deletions

View File

@ -2,38 +2,31 @@
(:require [status-im.ui.components.colors :as colors]
[status-im.ui.components.tabbar.styles :as tabs.styles]))
(def card-common
{:margin-vertical 16
:margin-horizontal 8
:width 156
:height 145
:shadow-offset {:width 0 :height 2}
:shadow-radius 8
:shadow-opacity 1
:shadow-color "rgba(0, 9, 26, 0.12)"
:elevation 3
:border-radius 8})
(defn card [color]
{:width 156
:height 145
:margin-right 16
:background-color color
:shadow-offset {:width 0 :height 2}
:shadow-radius 8
:shadow-opacity 1
:shadow-color "rgba(0, 9, 26, 0.12)"
:elevation 2
:border-radius 8
:justify-content :space-between
:padding 12
:padding-bottom 6
:margin-top 5
:margin-bottom 5})
(merge card-common
{:background-color color
:justify-content :space-between
:padding-horizontal 12
:padding-top 12
:padding-bottom 6}))
(def add-card
{:width 156
:height 145
:margin-top 5
:margin-right 5
:margin-bottom 5
:background-color colors/white
:shadow-offset {:width 0 :height 2}
:shadow-radius 8
:shadow-opacity 1
:shadow-color "rgba(0, 9, 26, 0.12)"
:elevation 2
:border-radius 8
:justify-content :center
:align-items :center})
(merge card-common
{:background-color colors/white
:justify-content :center
:align-items :center}))
(def send-button-container
{:position :absolute
@ -56,4 +49,4 @@
:shadow-radius 6
:shadow-opacity 1
:shadow-color "rgba(0, 12, 63, 0.2)"
:elevation 2})
:elevation 2})

View File

@ -160,9 +160,7 @@
[react/scroll-view {:horizontal true
:shows-horizontal-scroll-indicator false}
[react/view {:flex-direction :row
:padding-top 11
:padding-bottom 12
:padding-horizontal 16}
:padding-horizontal 8}
(for [account accounts]
^{:key account}
[account-card account])