Fixed chat width breaking when video hidden.

This commit is contained in:
rainbow napkin 2025-04-09 21:09:04 -04:00
parent 441108c9cb
commit 4c54c270d2
3 changed files with 43 additions and 8 deletions

View file

@ -224,16 +224,13 @@ class player{
if(show){
this.playerDiv.style.display = "flex";
this.showVideoIcon.style.display = "none";
this.client.chatBox.hideChatIcon.style.display = "flex";
//Lock the chat to aspect ratio of the video, to make sure the chat width isn't breaking shit
this.client.chatBox.lockAspect();
}else{
this.playerDiv.style.display = "none";
this.showVideoIcon.style.display = "flex";
this.client.chatBox.hideChatIcon.style.display = "none";
//Need to clear the width from the split, or else it doesn't display properly
this.client.chatBox.chatPanel.style.flexBasis = "100%";
}
//Tell chatbox to handle this shit
this.client.chatBox.handleVideoToggle(show);
}
toggleCinemaMode(cinema = !this.navBar.checkVisibility()){