diff options
author | Matthew Hodgson <matthew@matrix.org> | 2014-11-11 05:02:24 +0000 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2014-11-11 05:02:24 +0000 |
commit | 2fdf939ca996afbe70d8e5aec965fb197e3a15ae (patch) | |
tree | 50c786bffc76f8c2651327f734303631be815cf3 /syweb/webclient/room/room.html | |
parent | fix lines with wrapped userids (diff) | |
download | synapse-2fdf939ca996afbe70d8e5aec965fb197e3a15ae.tar.xz |
fix weird shaped message table rows
Diffstat (limited to '')
-rw-r--r-- | syweb/webclient/room/room.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/syweb/webclient/room/room.html b/syweb/webclient/room/room.html index 018d66f4fb..d1d1589e25 100644 --- a/syweb/webclient/room/room.html +++ b/syweb/webclient/room/room.html @@ -152,7 +152,7 @@ keep-scroll> <table id="messageTable" infinite-scroll="paginateMore()"> <tr ng-repeat="msg in room.events" - ng-class="(room.events[$index + 1].user_id !== msg.user_id ? 'differentUser' : '') + (msg.user_id === state.user_id ? ' mine' : '')" scroll-item> + ng-class="(room.events[$index - 1].user_id !== msg.user_id ? 'differentUser' : '') + (msg.user_id === state.user_id ? ' mine' : '')" scroll-item> <td class="leftBlock" ng-mouseover="state.showTs = 1" ng-mouseout="state.showTs = 0"> <div class="timestamp" ng-style="{ 'opacity': state.showTs ? 1.0 : 0.0 }" @@ -166,7 +166,7 @@ <img class="avatarImage" ng-src="{{ msg.__room_member.cnt.avatar_url || msg.__room_member.avatar_url || 'img/default-profile.png' }}" width="32" height="32" title="{{msg.user_id}}" ng-hide="room.events[$index - 1].user_id === msg.user_id || msg.user_id === state.user_id"/> </td> - <td style="vertical-align: bottom" ng-class="(!msg.content.membership && ('m.room.topic' !== msg.type && 'm.room.name' !== msg.type))? (msg.content.msgtype === 'm.emote' ? 'emote text' : 'text') : 'membership text'"> + <td class="msg" ng-class="(!msg.content.membership && ('m.room.topic' !== msg.type && 'm.room.name' !== msg.type))? (msg.content.msgtype === 'm.emote' ? 'emote text' : 'text') : 'membership text'"> <div class="bubble" ng-dblclick="openJson(msg)"> <span ng-if="'join' === msg.content.membership && msg.changedKey === 'membership'"> {{ msg.content.displayname || members[msg.state_key].displayname || msg.state_key }} joined |