mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-06 21:44:13 +03:00
UI tweaks (#20498)
* fix padding in debug view * remove latin character regex from wizard step 1 validation
This commit is contained in:
parent
b02d45d3cb
commit
3c8ef0c71c
@ -80,10 +80,6 @@ export default function Step1NameCamera({
|
|||||||
.string()
|
.string()
|
||||||
.min(1, t("cameraWizard.step1.errors.nameRequired"))
|
.min(1, t("cameraWizard.step1.errors.nameRequired"))
|
||||||
.max(64, t("cameraWizard.step1.errors.nameLength"))
|
.max(64, t("cameraWizard.step1.errors.nameLength"))
|
||||||
.regex(
|
|
||||||
/^[a-zA-Z0-9\s_-]+$/,
|
|
||||||
t("cameraWizard.step1.errors.invalidCharacters"),
|
|
||||||
)
|
|
||||||
.refine(
|
.refine(
|
||||||
(value) => !existingCameraNames.includes(value),
|
(value) => !existingCameraNames.includes(value),
|
||||||
t("cameraWizard.step1.errors.nameExists"),
|
t("cameraWizard.step1.errors.nameExists"),
|
||||||
|
|||||||
@ -162,7 +162,7 @@ export default function ObjectSettingsView({
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mt-1 flex size-full flex-col md:flex-row">
|
<div className="mt-1 flex size-full flex-col pb-2 md:flex-row">
|
||||||
<Toaster position="top-center" closeButton={true} />
|
<Toaster position="top-center" closeButton={true} />
|
||||||
<div className="scrollbar-container order-last mb-10 mt-2 flex h-full w-full flex-col overflow-y-auto rounded-lg border-[1px] border-secondary-foreground bg-background_alt p-2 md:order-none md:mb-0 md:mr-2 md:mt-0 md:w-3/12">
|
<div className="scrollbar-container order-last mb-10 mt-2 flex h-full w-full flex-col overflow-y-auto rounded-lg border-[1px] border-secondary-foreground bg-background_alt p-2 md:order-none md:mb-0 md:mr-2 md:mt-0 md:w-3/12">
|
||||||
<Heading as="h4" className="mb-2">
|
<Heading as="h4" className="mb-2">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user