fix stage overlay size

This commit is contained in:
Josh Hawkins 2026-03-25 09:08:49 -05:00
parent 3f6d5bcf22
commit 46a6e34442

View File

@ -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}