fix edit alignment
This commit is contained in:
parent
76bb243d9e
commit
bb2671e031
@ -950,6 +950,9 @@ function enterEdit() {
|
||||
input.style.color = 'inherit';
|
||||
input.style.textAlign = 'center';
|
||||
input.style.width = '12ch';
|
||||
// keep the input visually centered like the original span
|
||||
input.style.display = 'block';
|
||||
input.style.margin = '0 auto';
|
||||
span.replaceWith(input);
|
||||
input.focus();
|
||||
input.setSelectionRange(1, val.length);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user