mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-07 14:04:10 +03:00
don't change dialog size
This commit is contained in:
parent
c54ada65dc
commit
a859b9e397
@ -21,7 +21,6 @@ import type {
|
|||||||
ConfigSetBody,
|
ConfigSetBody,
|
||||||
} from "@/types/cameraWizard";
|
} from "@/types/cameraWizard";
|
||||||
import { processCameraName } from "@/utils/cameraUtil";
|
import { processCameraName } from "@/utils/cameraUtil";
|
||||||
import { isDesktop } from "react-device-detect";
|
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
|
|
||||||
type WizardState = {
|
type WizardState = {
|
||||||
@ -341,15 +340,7 @@ export default function CameraWizardDialog({
|
|||||||
return (
|
return (
|
||||||
<Dialog open={open} onOpenChange={handleClose}>
|
<Dialog open={open} onOpenChange={handleClose}>
|
||||||
<DialogContent
|
<DialogContent
|
||||||
className={cn(
|
className={cn("max-h-[90dvh] max-w-3xl overflow-y-auto")}
|
||||||
"max-h-[90dvh] max-w-xl overflow-y-auto",
|
|
||||||
isDesktop &&
|
|
||||||
currentStep == 0 &&
|
|
||||||
state.wizardData?.streams?.[0]?.testResult?.snapshot &&
|
|
||||||
"max-w-4xl",
|
|
||||||
isDesktop && currentStep == 1 && "max-w-2xl",
|
|
||||||
isDesktop && currentStep > 1 && "max-w-4xl",
|
|
||||||
)}
|
|
||||||
onInteractOutside={(e) => {
|
onInteractOutside={(e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}}
|
}}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user