Merge pull request #15 from ok2/codex/fix-cobie-time-box-editing-behavior

Fix manual time input alignment
This commit is contained in:
Kiyomichi Kosaka 2025-06-14 23:43:09 +02:00 committed by GitHub
commit 5f5228db90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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