We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07ebda6 commit 9509f8eCopy full SHA for 9509f8e
src/res/js/match/match.js
@@ -429,7 +429,13 @@
429
*/
430
function toggleChat() {
431
$("#chat-container").toggle()
432
- $("#toggle-chat-button").html(($("#chat-container").is(":visible") ? "Hide" : "Show") + " Chat")
+ let chatVisible = $("#chat-container").is(":visible")
433
+ $("#toggle-chat-button").html((chatVisible ? "Hide" : "Show") + " Chat")
434
+
435
+ // The match hand has the width of the chat hardcoded in its container
436
+ // size. When the chat is invisible, the hand should be centered in the
437
+ // new view.
438
+ $(".match-hand").css("width", chatVisible ? "" : "100vw")
439
}
440
441
setInterval(loadStatus, 1000)
0 commit comments