made user pics circle in chat
This commit is contained in:
parent
1655873738
commit
a3700c19ac
|
@ -83,9 +83,8 @@
|
||||||
{:width 36
|
{:width 36
|
||||||
:alignSelf :flex-start})
|
:alignSelf :flex-start})
|
||||||
|
|
||||||
(def photo-view {:borderRadius 12})
|
|
||||||
(def photo
|
(def photo
|
||||||
{:borderRadius 12
|
{:borderRadius 18
|
||||||
:width 36
|
:width 36
|
||||||
:height 36})
|
:height 36})
|
||||||
|
|
||||||
|
|
|
@ -317,7 +317,7 @@
|
||||||
|
|
||||||
(defview member-photo [from]
|
(defview member-photo [from]
|
||||||
[photo-path [:photo-path from]]
|
[photo-path [:photo-path from]]
|
||||||
[view st/photo-view
|
[view
|
||||||
[image {:source {:uri (if (str/blank? photo-path)
|
[image {:source {:uri (if (str/blank? photo-path)
|
||||||
(identicon from)
|
(identicon from)
|
||||||
photo-path)}
|
photo-path)}
|
||||||
|
@ -326,7 +326,7 @@
|
||||||
(defview my-photo [from]
|
(defview my-photo [from]
|
||||||
[account [:get-current-account]]
|
[account [:get-current-account]]
|
||||||
(let [{:keys [photo-path]} account]
|
(let [{:keys [photo-path]} account]
|
||||||
[view st/photo-view
|
[view
|
||||||
[image {:source {:uri (if (str/blank? photo-path)
|
[image {:source {:uri (if (str/blank? photo-path)
|
||||||
(identicon from)
|
(identicon from)
|
||||||
photo-path)}
|
photo-path)}
|
||||||
|
|
Loading…
Reference in New Issue