Fixed userlist breaking the page layout
This commit is contained in:
parent
a20bb99af2
commit
3f0af3a519
3 changed files with 26 additions and 6 deletions
|
|
@ -86,6 +86,9 @@ class userList{
|
|||
});
|
||||
|
||||
this.colorMap = newMap;
|
||||
|
||||
//Make sure we're not cutting the ux off
|
||||
this.clickDragger.fixCutoff();
|
||||
}
|
||||
|
||||
renderUser(user, flair){
|
||||
|
|
@ -118,10 +121,11 @@ class userList{
|
|||
this.userList.appendChild(userSpan);
|
||||
}
|
||||
|
||||
toggleUI(show = this.userDiv.style.display == "none"){
|
||||
toggleUI(show = !this.userDiv.checkVisibility()){
|
||||
if(show){
|
||||
this.userDiv.style.display = "flex";
|
||||
this.toggleIcon.classList.replace("bi-caret-left-fill","bi-caret-down-fill");
|
||||
this.clickDragger.fixCutoff();
|
||||
}else{
|
||||
this.userDiv.style.display = "none";
|
||||
this.toggleIcon.classList.replace("bi-caret-down-fill","bi-caret-left-fill");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue