Fixed userlist breaking the page layout

This commit is contained in:
rainbow napkin 2024-12-05 04:46:57 -05:00
parent a20bb99af2
commit 3f0af3a519
3 changed files with 26 additions and 6 deletions

View file

@ -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");