mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-08 06:25:27 +03:00
ensure classification wizard dialog is scrollable on mobile too
This commit is contained in:
parent
ea246384bf
commit
bc0fc4dc46
@ -14,7 +14,6 @@ import Step3ChooseExamples, {
|
|||||||
Step3FormData,
|
Step3FormData,
|
||||||
} from "./wizard/Step3ChooseExamples";
|
} from "./wizard/Step3ChooseExamples";
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
import { isDesktop } from "react-device-detect";
|
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
|
||||||
const OBJECT_STEPS = [
|
const OBJECT_STEPS = [
|
||||||
@ -153,13 +152,9 @@ export default function ClassificationModelWizardDialog({
|
|||||||
>
|
>
|
||||||
<DialogContent
|
<DialogContent
|
||||||
className={cn(
|
className={cn(
|
||||||
"",
|
"scrollbar-container max-h-[90%] overflow-y-auto",
|
||||||
isDesktop &&
|
wizardState.currentStep == 0 && "xl:max-h-[80%]",
|
||||||
wizardState.currentStep == 0 &&
|
wizardState.currentStep > 0 && "md:max-w-[70%] xl:max-h-[80%]",
|
||||||
"max-h-[90%] overflow-y-auto xl:max-h-[80%]",
|
|
||||||
isDesktop &&
|
|
||||||
wizardState.currentStep > 0 &&
|
|
||||||
"max-h-[90%] max-w-[70%] overflow-y-auto xl:max-h-[80%]",
|
|
||||||
)}
|
)}
|
||||||
onInteractOutside={(e) => {
|
onInteractOutside={(e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user