Slight improvement for Firefox bug #368

This commit is contained in:
the-djmaze 2022-05-10 10:25:53 +02:00
parent 06c0666b93
commit 2e1ae4c7d5
2 changed files with 3 additions and 1 deletions

View file

@ -202,7 +202,7 @@ export class EmailAddressesComponent {
_resizeInput() {
let input = this.input;
if (input.clientWidth < input.scrollWidth) {
input.style.width = Math.min(500, Math.max(200, input.scrollWidth)) + 'px';
input.style.width = (input.scrollWidth + 20) + 'px';
}
}

View file

@ -71,6 +71,8 @@
height: auto;
line-height: inherit;
margin: 0;
min-width: 18em;
max-width: 500px;
padding: 4px;
vertical-align: baseline;
}