Skip to content

Commit

Permalink
Render incoming avatars
Browse files Browse the repository at this point in the history
Closes #7
  • Loading branch information
dhleong committed Dec 25, 2016
1 parent 7e05392 commit 5ee8a23
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
6 changes: 4 additions & 2 deletions app/css/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,9 @@ ul#conversations {

list-style: none;
overflow: hidden;
display: block;
display: flex;

.avatar(32px);

&.hangout {
.roboto-condensed();
Expand Down Expand Up @@ -221,7 +223,7 @@ ul#conversations {
}
margin-left: @message-margin;
margin-right: (@message-margin / 4);
text-align: right;
justify-content: flex-end;
}

.event-item {
Expand Down
9 changes: 6 additions & 3 deletions src/cljs/hangr/views/conversation.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,12 @@
"pending")]
(filter identity)
(string/join " "))]
^{:key (:id event)} [:li.event
{:class class-name}
[conversation-item event]])))]))))
^{:key (:id event)}
[:li.event
{:class class-name}
(when (:incoming? event)
[avatar (get member-map (:sender event))])
[conversation-item event]])))]))))

;; -- Main Interface ----------------------------------------------------------

Expand Down

0 comments on commit 5ee8a23

Please sign in to comment.