mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-11 09:37:37 +03:00
mobile landscape
This commit is contained in:
parent
8ba659b36b
commit
b3e158bd01
@ -9,6 +9,7 @@ import { toast } from "sonner";
|
||||
import { Trans, useTranslation } from "react-i18next";
|
||||
import { LuInfo } from "react-icons/lu";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { isMobile } from "react-device-detect";
|
||||
|
||||
type Props = {
|
||||
className?: string;
|
||||
@ -67,8 +68,20 @@ export default function AnnotationOffsetSlider({ className }: Props) {
|
||||
}, [annotationOffset, camera, mutate, t]);
|
||||
|
||||
return (
|
||||
<div className={cn("flex flex-col gap-0.5 landscape:gap-3", className)}>
|
||||
<div className="flex items-center gap-3 landscape:flex-col landscape:items-start landscape:gap-4">
|
||||
<div
|
||||
className={cn(
|
||||
"flex flex-col gap-0.5",
|
||||
isMobile && "landscape:gap-3",
|
||||
className,
|
||||
)}
|
||||
>
|
||||
<div
|
||||
className={cn(
|
||||
"flex items-center gap-3",
|
||||
isMobile &&
|
||||
"landscape:flex-col landscape:items-start landscape:gap-4",
|
||||
)}
|
||||
>
|
||||
<div className="flex flex-row gap-2 text-sm">
|
||||
{t("trackingDetails.annotationSettings.offset.label")}:
|
||||
<span className="text-primary-variant">{annotationOffset}</span>
|
||||
@ -93,7 +106,12 @@ export default function AnnotationOffsetSlider({ className }: Props) {
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex items-center gap-2 text-xs text-muted-foreground landscape:flex-col landscape:items-start">
|
||||
<div
|
||||
className={cn(
|
||||
"flex items-center gap-2 text-xs text-muted-foreground",
|
||||
isMobile && "landscape:flex-col landscape:items-start",
|
||||
)}
|
||||
>
|
||||
<Trans ns="views/explore">
|
||||
trackingDetails.annotationSettings.offset.millisecondsToOffset
|
||||
</Trans>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user