mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-05 21:16:26 -05:00
Fix low-res userlist
The userlist in low-res mode now scrolls to top before collapsing, which fixes the issue where it might not display the user-count and toggle button.
This commit is contained in:
parent
83d3d64be7
commit
b96077039f
|
|
@ -1479,7 +1479,8 @@
|
|||
'!': 9,
|
||||
'‽': 10
|
||||
},
|
||||
toggleUserlist: function() {
|
||||
toggleUserlist: function(e) {
|
||||
e.stopPropagation();
|
||||
if (this.$el.hasClass('userlist-minimized')) {
|
||||
this.$el.removeClass('userlist-minimized');
|
||||
this.$el.addClass('userlist-maximized');
|
||||
|
|
@ -1493,6 +1494,7 @@
|
|||
this.$el.removeClass('userlist-maximized');
|
||||
},
|
||||
hide: function() {
|
||||
this.$el.scrollTop(0);
|
||||
this.$el.addClass('userlist-minimized');
|
||||
},
|
||||
updateUserCount: function () {
|
||||
|
|
|
|||
|
|
@ -1314,9 +1314,9 @@ div[class^='tournament-message-'], div[class*=' tournament-message-'] {
|
|||
}
|
||||
.userlist-maximized {
|
||||
height: auto;
|
||||
bottom: auto;
|
||||
bottom: 0;
|
||||
overflow: auto;
|
||||
background: #EEF2F5;
|
||||
border-bottom: 1px solid #AAAAAA;
|
||||
}
|
||||
.userlist-minimized .userlist-count,
|
||||
.userlist-maximized .userlist-count {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user