diff --git a/web/src/components/indicators/activity-indicator.tsx b/web/src/components/indicators/activity-indicator.tsx index 7aa31152d..edabf1f1b 100644 --- a/web/src/components/indicators/activity-indicator.tsx +++ b/web/src/components/indicators/activity-indicator.tsx @@ -1,9 +1,9 @@ import { LuLoader2 } from "react-icons/lu"; -export default function ActivityIndicator({ size = 30 }) { +export default function ActivityIndicator({ className = "w-full", size = 30 }) { return (
diff --git a/web/src/pages/Logs.tsx b/web/src/pages/Logs.tsx index a2f5072cc..49144e05d 100644 --- a/web/src/pages/Logs.tsx +++ b/web/src/pages/Logs.tsx @@ -11,6 +11,8 @@ import { FaCopy } from "react-icons/fa6"; import { Toaster } from "@/components/ui/sonner"; import { toast } from "sonner"; import { isDesktop } from "react-device-detect"; +import { Skeleton } from "@/components/ui/skeleton"; +import ActivityIndicator from "@/components/indicators/activity-indicator"; const logTypes = ["frigate", "go2rtc", "nginx"] as const; type LogType = (typeof logTypes)[number]; @@ -388,7 +390,7 @@ function Logs() { )} -
+
Type
@@ -443,6 +445,9 @@ function Logs() { })} {logLines.length > 0 &&
}
+ {logLines.length == 0 && ( + + )}
);