Skip to content

Commit

Permalink
Increase resolution for mobile viewing (#12025)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed Jun 17, 2024
1 parent ef304e6 commit 5b60785
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/components/camera/CameraImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { useEffect, useMemo, useRef, useState } from "react";
import useSWR from "swr";
import ActivityIndicator from "../indicators/activity-indicator";
import { useResizeObserver } from "@/hooks/resize-observer";
import { isDesktop } from "react-device-detect";

type CameraImageProps = {
className?: string;
Expand Down Expand Up @@ -37,7 +38,7 @@ export default function CameraImage({

return Math.min(
config.cameras[camera].detect.height,
Math.round(containerHeight * 1.1),
Math.round(containerHeight * (isDesktop ? 1.1 : 1.25)),
);
}, [config, camera, containerHeight]);

Expand Down

0 comments on commit 5b60785

Please sign in to comment.