refactor: add min to units inputs

This commit is contained in:
tglide
2023-02-14 17:48:11 +00:00
parent a9b55dcab8
commit 5d3198fc08
2 changed files with 2 additions and 1 deletions
@@ -43,7 +43,7 @@
<svelte:fragment slot="aside">
<form class="form u-grid u-gap-16">
<ul class="form-list is-multiple">
<InputNumber id="length" label="Length" bind:value={$value} />
<InputNumber id="length" label="Length" bind:value={$value} min={0} />
<InputSelect id="period" label="Time Period" bind:value={$unit} {options} />
</ul>
</form>
@@ -32,6 +32,7 @@
id="size"
label="Size"
placeholder={$bucket.maximumFileSize.toString()}
min={0}
bind:value={$value} />
<InputSelect id="bytes" label="Bytes" {options} bind:value={$unit} />
</ul>