1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2025-01-18 13:01:10 +00:00

Fixed minimal value for time offset input field

This commit is contained in:
Adam Blahovič 2023-09-05 20:20:33 +02:00 committed by GitHub
parent 77283e4063
commit 1489926b6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,12 +83,25 @@ const TimeOffsetForm: FunctionComponent<Props> = ({ selections, onSubmit }) => {
></FontAwesomeIcon>
</Button>
<NumberInput
min={0}
label="hour"
{...form.getInputProps("hour")}
></NumberInput>
<NumberInput label="min" {...form.getInputProps("min")}></NumberInput>
<NumberInput label="sec" {...form.getInputProps("sec")}></NumberInput>
<NumberInput label="ms" {...form.getInputProps("ms")}></NumberInput>
<NumberInput
min={0}
label="min"
{...form.getInputProps("min")}
></NumberInput>
<NumberInput
min={0}
label="sec"
{...form.getInputProps("sec")}
></NumberInput>
<NumberInput
min={0}
label="ms"
{...form.getInputProps("ms")}
></NumberInput>
</Group>
<Divider></Divider>
<Button disabled={!enabled} type="submit">