Fix review card aspect ratio using camera's actual detect dimensions

Hard-coded aspect-video (16:9) caused stretching for non-16:9 cameras.
Now uses camera detect.width/detect.height from config, falling back to 16:9.

https://claude.ai/code/session_01EwdaKGsrRLZ74smmCQ1MgW
This commit is contained in:
Claude 2026-03-13 21:13:55 +00:00
parent 6cb31d1f96
commit 0dd59b1409
No known key found for this signature in database

View File

@ -849,7 +849,14 @@ function DetectionReview({
}
className="review-item relative rounded-lg"
>
<div className="aspect-video overflow-hidden rounded-lg">
<div
className="overflow-hidden rounded-lg"
style={{
aspectRatio: config?.cameras[value.camera]
? `${config.cameras[value.camera].detect.width}/${config.cameras[value.camera].detect.height}`
: "16/9",
}}
>
<PreviewThumbnailPlayer
review={value}
allPreviews={relevantPreviews}