From 2ee2535df4484db6909220d5e08d0e5d9206a26d Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Sun, 7 Apr 2024 10:56:09 -0400 Subject: [PATCH] Comment out text overflow change --- src/ui/message-ui-handler.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ui/message-ui-handler.ts b/src/ui/message-ui-handler.ts index dc4fb9ce0..0d086ffe8 100644 --- a/src/ui/message-ui-handler.ts +++ b/src/ui/message-ui-handler.ts @@ -47,8 +47,9 @@ export default abstract class MessageUiHandler extends AwaitableUiHandler { } text = text.slice(0, actionMatch.index) + text.slice(actionMatch.index + actionMatch[2].length + 4); + // TODO: Fix this logic not working properly, presumably with existing line breaks // Predetermine overflow line breaks to avoid words breaking while displaying - const textWords = text.split(' '); + /*const textWords = text.split(' '); let lastLineCount = 1; let newText = textWords[0]; for (let w = 1; w < textWords.length; w++) { @@ -61,7 +62,7 @@ export default abstract class MessageUiHandler extends AwaitableUiHandler { newText = nextWordText; } - text = newText; + text = newText;*/ } if (this.textTimer) { this.textTimer.remove();