Fix channel edit input size
This commit is contained in:
parent
8d1ecc2c19
commit
3dcabac0b4
3
app.js
3
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();
|
||||
|
Loading…
Reference in New Issue
Block a user