From 18ebd0a6b823f890358f08d03380fc1ae4996613 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 3 Mar 2025 16:42:52 +0100 Subject: [PATCH] fix: don't let text input wrap. --- frontend/src/ui/multiline-input.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/ui/multiline-input.ts b/frontend/src/ui/multiline-input.ts index 0444840..8a51fe1 100644 --- a/frontend/src/ui/multiline-input.ts +++ b/frontend/src/ui/multiline-input.ts @@ -12,6 +12,9 @@ export class MultilineInput extends UINode { this.titleElement.id = `txtarea_title_${this.id}`; this.textareaElement = document.createElement("textarea"); this.textareaElement.id = `txtarea_${this.id}`; + this.textareaElement.style.whiteSpace = 'pre'; // Prevent text wrapping and preserve + this.textareaElement.style.overflow = 'auto'; // Enable scrolling if content overflows + this.titleElement.appendChild(this.textareaElement); this.element.appendChild(this.titleElement); }