mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-31 12:24:55 +03:00
Merge pull request #18 from ibs0d/revert-15-codex/add-camera-rotation-config-option-yo8e42
Revert "Support dashboard rotate + cover-fit for camera tiles and players"
This commit is contained in:
commit
adfd015157
@ -412,7 +412,6 @@ export default function LivePlayer({
|
|||||||
lowerClassName="md:rounded-2xl"
|
lowerClassName="md:rounded-2xl"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{applyDashboardTransforms ? (
|
|
||||||
<div
|
<div
|
||||||
ref={mediaViewportRef}
|
ref={mediaViewportRef}
|
||||||
className={cn(
|
className={cn(
|
||||||
@ -420,16 +419,10 @@ export default function LivePlayer({
|
|||||||
shouldFillContainer && "overflow-hidden",
|
shouldFillContainer && "overflow-hidden",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<div
|
<div className="absolute left-1/2 top-1/2" style={mediaTransformStyle}>
|
||||||
className="absolute left-1/2 top-1/2"
|
|
||||||
style={mediaTransformStyle}
|
|
||||||
>
|
|
||||||
{player}
|
{player}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
|
||||||
player
|
|
||||||
)}
|
|
||||||
{cameraEnabled &&
|
{cameraEnabled &&
|
||||||
!offline &&
|
!offline &&
|
||||||
(!showStillWithoutActivity || isReEnabling) &&
|
(!showStillWithoutActivity || isReEnabling) &&
|
||||||
@ -487,22 +480,16 @@ export default function LivePlayer({
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{applyDashboardTransforms ? (
|
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
"absolute inset-0",
|
"absolute inset-0 w-full",
|
||||||
showStillWithoutActivity &&
|
showStillWithoutActivity &&
|
||||||
!liveReady &&
|
!liveReady &&
|
||||||
!isReEnabling &&
|
!isReEnabling &&
|
||||||
cameraEnabled
|
cameraEnabled
|
||||||
? "visible"
|
? "visible"
|
||||||
: "invisible",
|
: "invisible",
|
||||||
shouldFillContainer && "overflow-hidden",
|
|
||||||
)}
|
)}
|
||||||
>
|
|
||||||
<div
|
|
||||||
className="absolute left-1/2 top-1/2"
|
|
||||||
style={mediaTransformStyle}
|
|
||||||
>
|
>
|
||||||
<AutoUpdatingCameraImage
|
<AutoUpdatingCameraImage
|
||||||
className={cn(
|
className={cn(
|
||||||
@ -520,30 +507,6 @@ export default function LivePlayer({
|
|||||||
periodicCache
|
periodicCache
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
) : (
|
|
||||||
<div
|
|
||||||
className={cn(
|
|
||||||
"absolute inset-0 w-full",
|
|
||||||
showStillWithoutActivity &&
|
|
||||||
!liveReady &&
|
|
||||||
!isReEnabling &&
|
|
||||||
cameraEnabled
|
|
||||||
? "visible"
|
|
||||||
: "invisible",
|
|
||||||
)}
|
|
||||||
>
|
|
||||||
<AutoUpdatingCameraImage
|
|
||||||
className="pointer-events-none size-full"
|
|
||||||
cameraClasses="relative size-full"
|
|
||||||
fit="contain"
|
|
||||||
camera={cameraConfig.name}
|
|
||||||
showFps={false}
|
|
||||||
reloadInterval={stillReloadInterval}
|
|
||||||
periodicCache
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{offline && applyDashboardTransforms && (
|
{offline && applyDashboardTransforms && (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user