Skip to content

Commit

Permalink
allow more digits in predefined tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
RoderickQiu committed Jan 19, 2024
1 parent 5b2e914 commit 98c46be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions preferences-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -610,10 +610,10 @@ function planAppend(item, index) {
"<li id='item" + index + "'> <input name='title' id='title" + index + "' type='text' class='rest' maxlength='15' value='" +
item.name + "' onchange='planEdit(" + index + ")' /> <br /><div class='text-muted small'>" +
i18n.__('predefined-tasks-settings-tip-part-1') + " <input id='work-time" + index + "' class='hotkeyset' type='number' value='" +
item.workTime + "' onchange='planEdit(" + index + ")' oninput='if (value.length > 3) value = value.slice(0, 3)' style='ime-mode:Disabled' title=" + i18n.__('what-can-be-here-predefined-tasks') + " /> " +
item.workTime + "' onchange='planEdit(" + index + ")' oninput='if (Number(value) > 1000) value = 1000' style='ime-mode:Disabled' title=" + i18n.__('what-can-be-here-predefined-tasks') + " /> " +
i18n.__('min') +
i18n.__('predefined-tasks-settings-tip-part-2') + " <input id='rest-time" + index + "' class='hotkeyset' type='number' value='" +
item.restTime + "' onchange='planEdit(" + index + ")' oninput='if (value.length > 3) value = value.slice(0, 3)' style='ime-mode:Disabled' title=" + i18n.__('what-can-be-here-predefined-tasks') + " /> " +
item.restTime + "' onchange='planEdit(" + index + ")' oninput='if (Number(value) > 1000) value = 1000' style='ime-mode:Disabled' title=" + i18n.__('what-can-be-here-predefined-tasks') + " /> " +
i18n.__('min') +
i18n.__('predefined-tasks-settings-tip-part-3') + " <input id='loops" + index + "' class='hotkeyset' type='number' value='" +
item.loops + "' onchange='planEdit(" + index + ")' oninput='if (value.length > 2) value = value.slice(0, 2)' style='ime-mode:Disabled' /> " +
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ li input:nth-last-child(4)::after {

.hotkeyset {
color: #6c757d;
width: 24px;
width: 30px;
height: 20px;
text-align: center;
}
Expand Down

0 comments on commit 98c46be

Please sign in to comment.