Skip to content

Commit

Permalink
Time entries – Allow more 0.01 step entries instead of 0.25 to allow …
Browse files Browse the repository at this point in the history
…for more flexibility. Addresses #9.
  • Loading branch information
te-online committed Nov 29, 2020
1 parent a4c36e7 commit 6abf96a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -9835,7 +9835,7 @@
input0.autofocus = true;
attr(input0, "type", "number");
attr(input0, "name", "duration");
attr(input0, "step", "0.25");
attr(input0, "step", "0.01");
attr(input0, "placeholder", "");
set_style(input0, "width", "100%");
attr(input0, "class", "input-wide");
Expand Down Expand Up @@ -15865,7 +15865,7 @@
html_tag = new HtmlTag(t3);
attr(input1, "type", "number");
attr(input1, "name", "duration");
attr(input1, "step", "0.25");
attr(input1, "step", "0.01");
attr(input1, "placeholder", "");
attr(input1, "class", "duration-input");
attr(input2, "type", "date");
Expand Down
2 changes: 1 addition & 1 deletion js/views/QuickAdd.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
<label>
{@html window.t('timemanager', 'Duration (in hrs.) & Date')}
<span class="double">
<input type="number" name="duration" step="0.25" placeholder="" class="duration-input" bind:value={duration} />
<input type="number" name="duration" step="0.01" placeholder="" class="duration-input" bind:value={duration} />
<input type="date" name="date" class="date-input" bind:value={date} />
</span>
</label>
Expand Down
2 changes: 1 addition & 1 deletion js/views/TimeEditor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
autofocus
type="number"
name="duration"
step="0.25"
step="0.01"
placeholder=""
style="width: 100%"
class="input-wide"
Expand Down

0 comments on commit 6abf96a

Please sign in to comment.