made user pics circle in chat

This commit is contained in:
Andrey Shovkoplyas 2017-09-04 14:34:48 +03:00 committed by Roman Volosovskyi
parent 1655873738
commit a3700c19ac
2 changed files with 3 additions and 4 deletions

View File

@ -83,9 +83,8 @@
{:width 36
:alignSelf :flex-start})
(def photo-view {:borderRadius 12})
(def photo
{:borderRadius 12
{:borderRadius 18
:width 36
:height 36})

View File

@ -317,7 +317,7 @@
(defview member-photo [from]
[photo-path [:photo-path from]]
[view st/photo-view
[view
[image {:source {:uri (if (str/blank? photo-path)
(identicon from)
photo-path)}
@ -326,7 +326,7 @@
(defview my-photo [from]
[account [:get-current-account]]
(let [{:keys [photo-path]} account]
[view st/photo-view
[view
[image {:source {:uri (if (str/blank? photo-path)
(identicon from)
photo-path)}