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();