mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-10 21:25:24 +03:00
Cleanup log seeking
This commit is contained in:
parent
5b9a0cb56b
commit
15b38d8e8d
@ -10,6 +10,7 @@ import { LogLevelFilterButton } from "@/components/filter/LogLevelFilter";
|
|||||||
import { FaCopy } from "react-icons/fa6";
|
import { FaCopy } from "react-icons/fa6";
|
||||||
import { Toaster } from "@/components/ui/sonner";
|
import { Toaster } from "@/components/ui/sonner";
|
||||||
import { toast } from "sonner";
|
import { toast } from "sonner";
|
||||||
|
import { isDesktop } from "react-device-detect";
|
||||||
|
|
||||||
const logTypes = ["frigate", "go2rtc", "nginx"] as const;
|
const logTypes = ["frigate", "go2rtc", "nginx"] as const;
|
||||||
type LogType = (typeof logTypes)[number];
|
type LogType = (typeof logTypes)[number];
|
||||||
@ -425,7 +426,12 @@ function Logs() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return <div key={`${idx}-${logService}`} className="h-12" />;
|
return (
|
||||||
|
<div
|
||||||
|
key={`${idx}-${logService}`}
|
||||||
|
className={isDesktop ? "h-12" : "h-16"}
|
||||||
|
/>
|
||||||
|
);
|
||||||
})}
|
})}
|
||||||
{logLines.length > 0 && <div id="page-bottom" ref={endLogRef} />}
|
{logLines.length > 0 && <div id="page-bottom" ref={endLogRef} />}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user