From 3dcabac0b4cf691d6964eb8c622b260967f02cd8 Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Mon, 10 Jun 2024 20:28:16 -0400 Subject: [PATCH] Fix channel edit input size --- app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app.js b/app.js index 57122c6..d4c06a8 100644 --- a/app.js +++ b/app.js @@ -291,6 +291,9 @@ function enterEditMode(roomItem) { const input = document.createElement('input'); input.type = 'text'; input.value = originalText; + input.style.maxWidth = '100%'; // Add this line to set the max width + input.style.boxSizing = 'border-box'; // Add this line to ensure padding and border are included in the width + roomItem.appendChild(input); input.focus();