mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-05 22:57:40 +03:00
fix stage overlay size
This commit is contained in:
parent
3f6d5bcf22
commit
46a6e34442
@ -707,14 +707,23 @@ export default function LiveCameraView({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
className={`relative flex flex-col items-center justify-center ${growClassName}`}
|
className={cn(
|
||||||
|
"flex flex-col items-center justify-center",
|
||||||
|
growClassName,
|
||||||
|
)}
|
||||||
ref={clickOverlayRef}
|
ref={clickOverlayRef}
|
||||||
style={{
|
style={{
|
||||||
aspectRatio: constrainedAspectRatio,
|
aspectRatio: constrainedAspectRatio,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{clickOverlay && overlaySize.width > 0 && (
|
{clickOverlay && overlaySize.width > 0 && (
|
||||||
<div className="absolute inset-0 z-40 cursor-crosshair">
|
<div
|
||||||
|
className="absolute z-40 cursor-crosshair"
|
||||||
|
style={{
|
||||||
|
width: overlaySize.width,
|
||||||
|
height: overlaySize.height,
|
||||||
|
}}
|
||||||
|
>
|
||||||
<Stage
|
<Stage
|
||||||
width={overlaySize.width}
|
width={overlaySize.width}
|
||||||
height={overlaySize.height}
|
height={overlaySize.height}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user