mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-08 12:15:25 +03:00
Update web/src/components/player/JSMpegPlayer.tsx
This commit is contained in:
parent
79e3361793
commit
1a0fd50081
@ -37,7 +37,6 @@ export default function JSMpegPlayer({
|
|||||||
const scaledHeight = useMemo(() => {
|
const scaledHeight = useMemo(() => {
|
||||||
const scaledHeight = Math.floor(availableWidth / aspectRatio);
|
const scaledHeight = Math.floor(availableWidth / aspectRatio);
|
||||||
const finalHeight = Math.min(scaledHeight, height);
|
const finalHeight = Math.min(scaledHeight, height);
|
||||||
console.log(`${containerWidth} / ${aspectRatio} -< ${containerHeight}`);
|
|
||||||
|
|
||||||
if (containerHeight < finalHeight) {
|
if (containerHeight < finalHeight) {
|
||||||
return containerHeight;
|
return containerHeight;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user