mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-18 14:18:21 +03:00
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:
parent
6cb31d1f96
commit
0dd59b1409
@ -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}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user