mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-11-13 07:30:38 -05:00
Make messages list and room users list scroll-overflow
This commit is contained in:
parent
31ac288eb7
commit
f99168de06
3 changed files with 32 additions and 13 deletions
|
|
@ -33,7 +33,8 @@ angular.module('RoomController', [])
|
|||
}
|
||||
$scope.messages.push(chunk);
|
||||
$timeout(function() {
|
||||
window.scrollTo(0, document.body.scrollHeight);
|
||||
var objDiv = document.getElementsByClassName("messageTableWrapper")[0];
|
||||
objDiv.scrollTop = objDiv.scrollHeight;
|
||||
},0);
|
||||
}
|
||||
else if (chunk.room_id == $scope.room_id && chunk.type == "m.room.member") {
|
||||
|
|
|
|||
|
|
@ -6,15 +6,17 @@
|
|||
{{ room_alias || room_id }}
|
||||
</div>
|
||||
|
||||
<table class="usersTable">
|
||||
<tr ng-repeat="(name, info) in members">
|
||||
<td class="userAvatar">
|
||||
<img class="userAvatarImage" ng-src="{{info.avatar_url || 'img/default-profile.jpg'}}" width="80" height="80"/>
|
||||
<img class="userAvatarGradient" src="img/gradient.png" width="80" height="24"/>
|
||||
<div class="userName">{{ info.displayname || name }}</div>
|
||||
</td>
|
||||
<td class="userPresence" ng-class="info.presenceState === 'online' ? 'online' : (info.presenceState === 'away' ? 'away' : '')" />
|
||||
</table>
|
||||
<div class="usersTableWrapper">
|
||||
<table class="usersTable">
|
||||
<tr ng-repeat="(name, info) in members">
|
||||
<td class="userAvatar">
|
||||
<img class="userAvatarImage" ng-src="{{info.avatar_url || 'img/default-profile.jpg'}}" width="80" height="80"/>
|
||||
<img class="userAvatarGradient" src="img/gradient.png" width="80" height="24"/>
|
||||
<div class="userName">{{ info.displayname || name }}</div>
|
||||
</td>
|
||||
<td class="userPresence" ng-class="info.presenceState === 'online' ? 'online' : (info.presenceState === 'away' ? 'away' : '')" />
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="messageTableWrapper">
|
||||
<table class="messageTable">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue