mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-15 17:46:43 +03:00
Improve ptz placement for debug view
This commit is contained in:
parent
951b36377b
commit
c74efe8656
@ -36,11 +36,13 @@ import { useTranslation } from "react-i18next";
|
|||||||
import TooltipButton from "@/views/button/TooltipButton";
|
import TooltipButton from "@/views/button/TooltipButton";
|
||||||
|
|
||||||
export default function PtzControlPanel({
|
export default function PtzControlPanel({
|
||||||
|
className,
|
||||||
camera,
|
camera,
|
||||||
enabled,
|
enabled,
|
||||||
clickOverlay,
|
clickOverlay,
|
||||||
setClickOverlay,
|
setClickOverlay,
|
||||||
}: {
|
}: {
|
||||||
|
className?: string;
|
||||||
camera: string;
|
camera: string;
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
clickOverlay: boolean;
|
clickOverlay: boolean;
|
||||||
@ -128,6 +130,7 @@ export default function PtzControlPanel({
|
|||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
"absolute inset-x-2 bottom-[10%] flex select-none flex-wrap items-center justify-center gap-1 md:left-[50%] md:-translate-x-[50%] md:flex-nowrap",
|
"absolute inset-x-2 bottom-[10%] flex select-none flex-wrap items-center justify-center gap-1 md:left-[50%] md:-translate-x-[50%] md:flex-nowrap",
|
||||||
|
className ?? "",
|
||||||
isMobile && "landscape:ml-12",
|
isMobile && "landscape:ml-12",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
|||||||
@ -680,6 +680,7 @@ export default function LiveCameraView({
|
|||||||
{camera.onvif.host != "" && (
|
{camera.onvif.host != "" && (
|
||||||
<div className="flex flex-col items-center justify-center">
|
<div className="flex flex-col items-center justify-center">
|
||||||
<PtzControlPanel
|
<PtzControlPanel
|
||||||
|
className={debug ? "bottom-auto top-[25%]" : ""}
|
||||||
camera={camera.name}
|
camera={camera.name}
|
||||||
enabled={cameraEnabled}
|
enabled={cameraEnabled}
|
||||||
clickOverlay={clickOverlay}
|
clickOverlay={clickOverlay}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user