mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-05 14:47: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
|
||||
className={`relative flex flex-col items-center justify-center ${growClassName}`}
|
||||
className={cn(
|
||||
"flex flex-col items-center justify-center",
|
||||
growClassName,
|
||||
)}
|
||||
ref={clickOverlayRef}
|
||||
style={{
|
||||
aspectRatio: constrainedAspectRatio,
|
||||
}}
|
||||
>
|
||||
{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
|
||||
width={overlaySize.width}
|
||||
height={overlaySize.height}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user