mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-09 04:35:25 +03:00
Cleanup
This commit is contained in:
parent
db5581e72d
commit
6af879bed7
@ -103,10 +103,14 @@ export default function LiveCameraView({ camera }: LiveCameraViewProps) {
|
|||||||
if (isMobile) {
|
if (isMobile) {
|
||||||
if (isPortrait) {
|
if (isPortrait) {
|
||||||
return "absolute left-2 right-2 top-[50%] -translate-y-[50%]";
|
return "absolute left-2 right-2 top-[50%] -translate-y-[50%]";
|
||||||
|
} else {
|
||||||
|
if (aspect > 16 / 9) {
|
||||||
|
return "absolute left-12 top-[50%] -translate-y-[50%]";
|
||||||
} else {
|
} else {
|
||||||
return "absolute top-2 bottom-2 left-[50%] -translate-x-[50%]";
|
return "absolute top-2 bottom-2 left-[50%] -translate-x-[50%]";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (fullscreen) {
|
if (fullscreen) {
|
||||||
if (aspect > 16 / 9) {
|
if (aspect > 16 / 9) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user