From 98776062ca2e51aeb640d1a0a5186c7606089794 Mon Sep 17 00:00:00 2001 From: Holly Date: Fri, 19 Apr 2024 12:03:38 +0100 Subject: [PATCH] fix cursor container bad size --- client/Terminal-00-Multiuser.user.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/Terminal-00-Multiuser.user.js b/client/Terminal-00-Multiuser.user.js index cc97e75..cc84b66 100644 --- a/client/Terminal-00-Multiuser.user.js +++ b/client/Terminal-00-Multiuser.user.js @@ -93,6 +93,10 @@ if (!window.TE_ACTIVE) { const otherCursors = document.createElement("div"); otherCursors.id = "otherCursors"; document.body.appendChild(otherCursors); + + setInterval(() => { + otherCursors.style = `width:${window.innerWidth}px;height:${document.body.scrollHeight}px`; + }, 1000); const keepAlivePacket = createWriter(Endian.LE, 1).writeByte(MessageType.KeepAlive).toBuffer();