[fix] icon and text alignment for group and public chat on home

Signed-off-by: yenda <eric@status.im>
This commit is contained in:
yenda 2019-02-12 17:34:22 +01:00
parent 7366f8973b
commit 0563abff54
No known key found for this signature in database
GPG Key ID: 0095623C0069DCE6
2 changed files with 7 additions and 5 deletions

View File

@ -75,13 +75,13 @@
:height 26}}) :height 26}})
(defstyle private-group-icon-container (defstyle private-group-icon-container
{:width 20 {:align-items :center
:height 12 :justify-content :center
:margin-right 6}) :margin-right 6})
(defstyle public-group-icon-container (defstyle public-group-icon-container
{:width 20 {:align-items :center
:height 12 :justify-content :center
:margin-right 6}) :margin-right 6})
(def last-message-container (def last-message-container

View File

@ -84,7 +84,9 @@
(when private-group? (when private-group?
[react/view styles/private-group-icon-container [react/view styles/private-group-icon-container
[vector-icons/icon :tiny-icons/tiny-group {:color colors/gray}]]) [vector-icons/icon :tiny-icons/tiny-group {:color colors/gray}]])
[react/view {:flex-shrink 1} [react/view {:flex-shrink 1
:align-items :center
:justify-content :center}
[react/text {:style styles/name-text [react/text {:style styles/name-text
:number-of-lines 1 :number-of-lines 1
:accessibility-label :chat-name-text} :accessibility-label :chat-name-text}