Skip to content

NVR with realtime local object detection for IP cameras

Miscellaneous Fixes (#21024)

Josh Hawkinsaa8b423b6899
diff --git a/docs/docs/configuration/audio_detectors.md b/docs/docs/configuration/audio_detectors.md
index bf71f8d819..3bf57b1a78 100644
--- a/docs/docs/configuration/audio_detectors.md
+++ b/docs/docs/configuration/audio_detectors.md
@@ -144,4 +144,10 @@ In order to use transcription and translation for past events, you must enable a
The transcribed/translated speech will appear in the description box in the Tracked Object Details pane. If Semantic Search is enabled, embeddings are generated for the transcription text and are fully searchable using the description search type.
-Recorded `speech` events will always use a `whisper` model, regardless of the `model_size` config setting. Without a GPU, generating transcriptions for longer `speech` events may take a fair amount of time, so be patient.
+:::note
+
+Only one `speech` event may be transcribed at a time. Frigate does not automatically transcribe `speech` events or implement a queue for long-running transcription model inference.
+
+:::
+
+Recorded `speech` events will always use a `whisper` model, regardless of the `model_size` config setting. Without a supported Nvidia GPU, generating transcriptions for longer `speech` events may take a fair amount of time, so be patient.
diff --git a/docs/docs/configuration/reference.md b/docs/docs/configuration/reference.md
index 907bda21e9..f8b49303f0 100644
--- a/docs/docs/configuration/reference.md
+++ b/docs/docs/configuration/reference.md
@@ -700,11 +700,11 @@ genai:
# Optional: Configuration for audio transcription
# NOTE: only the enabled option can be overridden at the camera level
audio_transcription:
- # Optional: Enable license plate recognition (default: shown below)
+ # Optional: Enable live and speech event audio transcription (default: shown below)
enabled: False
- # Optional: The device to run the models on (default: shown below)
+ # Optional: The device to run the models on for live transcription. (default: shown below)
device: CPU
- # Optional: Set the model size used for transcription. (default: shown below)
+ # Optional: Set the model size used for live transcription. (default: shown below)
model_size: small
# Optional: Set the language used for transcription translation. (default: shown below)
# List of language codes: https://github.com/openai/whisper/blob/main/whisper/tokenizer.py#L10
diff --git a/frigate/api/classification.py b/frigate/api/classification.py
index a2aec68982..9b116be107 100644
--- a/frigate/api/classification.py
+++ b/frigate/api/classification.py
@@ -542,6 +542,7 @@ def transcribe_audio(request: Request, body: AudioTranscriptionBody):
status_code=409, # 409 Conflict
)
else:
+ logger.debug(f"Failed to transcribe audio, response: {response}")
return JSONResponse(
content={
"success": False,
diff --git a/frigate/comms/dispatcher.py b/frigate/comms/dispatcher.py
index 235693c8c5..0c2ba5a898 100644
--- a/frigate/comms/dispatcher.py
+++ b/frigate/comms/dispatcher.py
@@ -23,6 +23,7 @@ from frigate.const import (
NOTIFICATION_TEST,
REQUEST_REGION_GRID,
UPDATE_AUDIO_ACTIVITY,
+ UPDATE_AUDIO_TRANSCRIPTION_STATE,
UPDATE_BIRDSEYE_LAYOUT,
UPDATE_CAMERA_ACTIVITY,
UPDATE_EMBEDDINGS_REINDEX_PROGRESS,
@@ -61,6 +62,7 @@ class Dispatcher:
self.model_state: dict[str, ModelStatusTypesEnum] = {}
self.embeddings_reindex: dict[str, Any] = {}
self.birdseye_layout: dict[str, Any] = {}
+ self.audio_transcription_state: str = "idle"
self._camera_settings_handlers: dict[str, Callable] = {
"audio": self._on_audio_command,
"audio_transcription": self._on_audio_transcription_command,
@@ -178,6 +180,19 @@ class Dispatcher:
def handle_model_state() -> None:
self.publish("model_state", json.dumps(self.model_state.copy()))
+ def handle_update_audio_transcription_state() -> None:
+ if payload:
+ self.audio_transcription_state = payload
+ self.publish(
+ "audio_transcription_state",
+ json.dumps(self.audio_transcription_state),
+ )
+
+ def handle_audio_transcription_state() -> None:
+ self.publish(
+ "audio_transcription_state", json.dumps(self.audio_transcription_state)
+ )
+
def handle_update_embeddings_reindex_progress() -> None:
self.embeddings_reindex = payload
self.publish(
@@ -264,10 +279,12 @@ class Dispatcher:
UPDATE_MODEL_STATE: handle_update_model_state,
UPDATE_EMBEDDINGS_REINDEX_PROGRESS: handle_update_embeddings_reindex_progress,
UPDATE_BIRDSEYE_LAYOUT: handle_update_birdseye_layout,
+ UPDATE_AUDIO_TRANSCRIPTION_STATE: handle_update_audio_transcription_state,
NOTIFICATION_TEST: handle_notification_test,
"restart": handle_restart,
"embeddingsReindexProgress": handle_embeddings_reindex_progress,
"modelState": handle_model_state,
+ "audioTranscriptionState": handle_audio_transcription_state,
"birdseyeLayout": handle_birdseye_layout,
"onConnect": handle_on_connect,
}
diff --git a/frigate/const.py b/frigate/const.py
index 5710966bf9..11e89886fb 100644
--- a/frigate/const.py
+++ b/frigate/const.py
@@ -113,6 +113,7 @@ CLEAR_ONGOING_REVIEW_SEGMENTS = "clear_ongoing_review_segments"
UPDATE_CAMERA_ACTIVITY = "update_camera_activity"
UPDATE_AUDIO_ACTIVITY = "update_audio_activity"
EXPIRE_AUDIO_ACTIVITY = "expire_audio_activity"
+UPDATE_AUDIO_TRANSCRIPTION_STATE = "update_audio_transcription_state"
UPDATE_EVENT_DESCRIPTION = "update_event_description"
UPDATE_REVIEW_DESCRIPTION = "update_review_description"
UPDATE_MODEL_STATE = "update_model_state"
diff --git a/frigate/data_processing/post/audio_transcription.py b/frigate/data_processing/post/audio_transcription.py
index 870c340686..b7b6cb021b 100644
--- a/frigate/data_processing/post/audio_transcription.py
+++ b/frigate/data_processing/post/audio_transcription.py
@@ -13,6 +13,7 @@ from frigate.config import FrigateConfig
from frigate.const import (
CACHE_DIR,
MODEL_CACHE_DIR,
+ UPDATE_AUDIO_TRANSCRIPTION_STATE,
UPDATE_EVENT_DESCRIPTION,
)
from frigate.data_processing.types import PostProcessDataEnum
@@ -190,6 +191,8 @@ class AudioTranscriptionPostProcessor(PostProcessorApi):
self.transcription_running = False
self.transcription_thread = None
+ self.requestor.send_data(UPDATE_AUDIO_TRANSCRIPTION_STATE, "idle")
+
def handle_request(self, topic: str, request_data: dict[str, any]) -> str | None:
if topic == "transcribe_audio":
event = request_data["event"]
@@ -203,6 +206,8 @@ class AudioTranscriptionPostProcessor(PostProcessorApi):
# Mark as running and start the thread
self.transcription_running = True
+ self.requestor.send_data(UPDATE_AUDIO_TRANSCRIPTION_STATE, "processing")
+
self.transcription_thread = threading.Thread(
target=self._transcription_wrapper, args=(event,), daemon=True
)
diff --git a/frigate/timeline.py b/frigate/timeline.py
index 8e6aedc679..a2d59b88ee 100644
--- a/frigate/timeline.py
+++ b/frigate/timeline.py
@@ -109,6 +109,7 @@ class TimelineProcessor(threading.Thread):
event_data["region"],
),
"attribute": "",
+ "score": event_data["score"],
},
}
diff --git a/web/src/api/ws.tsx b/web/src/api/ws.tsx
index 302f3f2632..44d45ea2f0 100644
--- a/web/src/api/ws.tsx
+++ b/web/src/api/ws.tsx
@@ -461,6 +461,40 @@ export function useEmbeddingsReindexProgress(
return { payload: data };
}
+export function useAudioTranscriptionProcessState(
+ revalidateOnFocus: boolean = true,
+): { payload: string } {
+ const {
+ value: { payload },
+ send: sendCommand,
+ } = useWs("audio_transcription_state", "audioTranscriptionState");
+
+ const data = useDeepMemo(
+ payload ? (JSON.parse(payload as string) as string) : "idle",
+ );
+
+ useEffect(() => {
+ let listener = undefined;
+ if (revalidateOnFocus) {
+ sendCommand("audioTranscriptionState");
+ listener = () => {
+ if (document.visibilityState == "visible") {
+ sendCommand("audioTranscriptionState");
+ }
+ };
+ addEventListener("visibilitychange", listener);
+ }
+ return () => {
+ if (listener) {
+ removeEventListener("visibilitychange", listener);
+ }
+ };
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, [revalidateOnFocus]);
+
+ return { payload: data || "idle" };
+}
+
export function useBirdseyeLayout(revalidateOnFocus: boolean = true): {
payload: string;
} {
diff --git a/web/src/components/overlay/ObjectTrackOverlay.tsx b/web/src/components/overlay/ObjectTrackOverlay.tsx
index 7e548af2e8..8f78adcd74 100644
--- a/web/src/components/overlay/ObjectTrackOverlay.tsx
+++ b/web/src/components/overlay/ObjectTrackOverlay.tsx
@@ -42,6 +42,7 @@ type ObjectData = {
pathPoints: PathPoint[];
currentZones: string[];
currentBox?: number[];
+ currentAttributeBox?: number[];
};
export default function ObjectTrackOverlay({
@@ -105,6 +106,12 @@ export default function ObjectTrackOverlay({
selectedObjectIds.length > 0
? ["event_ids", { ids: selectedObjectIds.join(",") }]
: null,
+ null,
+ {
+ revalidateOnFocus: false,
+ revalidateOnReconnect: false,
+ dedupingInterval: 30000,
+ },
);
// Fetch timeline data for each object ID using fixed number of hooks
@@ -112,7 +119,12 @@ export default function ObjectTrackOverlay({
selectedObjectIds.length > 0
? `timeline?source_id=${selectedObjectIds.join(",")}&limit=1000`
: null,
- { revalidateOnFocus: false },
+ null,
+ {
+ revalidateOnFocus: false,
+ revalidateOnReconnect: false,
+ dedupingInterval: 30000,
+ },
);
const getZonesFriendlyNames = (zones: string[], config: FrigateConfig) => {
@@ -270,6 +282,7 @@ export default function ObjectTrackOverlay({
);
const currentBox = nearbyTimelineEvent?.data?.box;
+ const currentAttributeBox = nearbyTimelineEvent?.data?.attribute_box;
return {
objectId,
@@ -278,6 +291,7 @@ export default function ObjectTrackOverlay({
pathPoints: combinedPoints,
currentZones,
currentBox,
+ currentAttributeBox,
};
})
.filter((obj: ObjectData) => obj.pathPoints.length > 0); // Only include objects with path data
@@ -482,6 +496,20 @@ export default function ObjectTrackOverlay({
/>
</g>
)}
+ {objData.currentAttributeBox && showBoundingBoxes && (
+ <g>
+ <rect
+ x={objData.currentAttributeBox[0] * videoWidth}
+ y={objData.currentAttributeBox[1] * videoHeight}
+ width={objData.currentAttributeBox[2] * videoWidth}
+ height={objData.currentAttributeBox[3] * videoHeight}
+ fill="none"
+ stroke={objData.color}
+ strokeWidth={boxStroke}
+ opacity="0.9"
+ />
+ </g>
+ )}
</g>
);
})}
diff --git a/web/src/components/overlay/detail/SearchDetailDialog.tsx b/web/src/components/overlay/detail/SearchDetailDialog.tsx
index 6b716a5637..467008e929 100644
--- a/web/src/components/overlay/detail/SearchDetailDialog.tsx
+++ b/web/src/components/overlay/detail/SearchDetailDialog.tsx
@@ -92,6 +92,7 @@ import { DialogPortal } from "@radix-ui/react-dialog";
import { useDetailStream } from "@/context/detail-stream-context";
import { PiSlidersHorizontalBold } from "react-icons/pi";
import { HiSparkles } from "react-icons/hi";
+import { useAudioTranscriptionProcessState } from "@/api/ws";
const SEARCH_TABS = ["snapshot", "tracking_details"] as const;
export type SearchTab = (typeof SEARCH_TABS)[number];
@@ -1076,6 +1077,11 @@ function ObjectDetailsTab({
});
}, [search, t]);
+ // audio transcription processing state
+
+ const { payload: audioTranscriptionProcessState } =
+ useAudioTranscriptionProcessState();
+
// frigate+ submission
type SubmissionState = "reviewing" | "uploading" | "submitted";
@@ -1431,10 +1437,20 @@ function ObjectDetailsTab({
<TooltipTrigger asChild>
<button
aria-label={t("itemMenu.audioTranscription.label")}
- className="text-primary/40 hover:text-primary/80"
+ className={cn(
+ "text-primary/40",
+ audioTranscriptionProcessState === "processing"
+ ? "cursor-not-allowed"
+ : "hover:text-primary/80",
+ )}
onClick={onTranscribe}
+ disabled={audioTranscriptionProcessState === "processing"}
>
- <FaMicrophone className="size-4" />
+ {audioTranscriptionProcessState === "processing" ? (
+ <ActivityIndicator className="size-4" />
+ ) : (
+ <FaMicrophone className="size-4" />
+ )}
</button>
</TooltipTrigger>
<TooltipContent>
diff --git a/web/src/components/overlay/detail/TrackingDetails.tsx b/web/src/components/overlay/detail/TrackingDetails.tsx
index 727dd45527..c6e10f8c2b 100644
--- a/web/src/components/overlay/detail/TrackingDetails.tsx
+++ b/web/src/components/overlay/detail/TrackingDetails.tsx
@@ -75,12 +75,15 @@ export function TrackingDetails({
setIsVideoLoading(true);
}, [event.id]);
- const { data: eventSequence } = useSWR<TrackingDetailsSequence[]>([
- "timeline",
+ const { data: eventSequence } = useSWR<TrackingDetailsSequence[]>(
+ ["timeline", { source_id: event.id }],
+ null,
{
- source_id: event.id,
+ revalidateOnFocus: false,
+ revalidateOnReconnect: false,
+ dedupingInterval: 30000,
},
- ]);
+ );
const { data: config } = useSWR<FrigateConfig>("config");
@@ -104,6 +107,12 @@ export function TrackingDetails({
},
]
: null,
+ null,
+ {
+ revalidateOnFocus: false,
+ revalidateOnReconnect: false,
+ dedupingInterval: 30000,
+ },
);
// Convert a timeline timestamp to actual video player time, accounting for
@@ -714,53 +723,6 @@ export function TrackingDetails({
)}
<div className="space-y-2">
{eventSequence.map((item, idx) => {
- const isActive =
- Math.abs(
- (effectiveTime ?? 0) - (item.timestamp ?? 0),
- ) <= 0.5;
- const formattedEventTimestamp = config
- ? formatUnixTimestampToDateTime(item.timestamp ?? 0, {
- timezone: config.ui.timezone,
- date_format:
- config.ui.time_format == "24hour"
- ? t(
- "time.formattedTimestampHourMinuteSecond.24hour",
- { ns: "common" },
- )
- : t(
- "time.formattedTimestampHourMinuteSecond.12hour",
- { ns: "common" },
- ),
- time_style: "medium",
- date_style: "medium",
- })
- : "";
-
- const ratio =
- Array.isArray(item.data.box) &&
- item.data.box.length >= 4
- ? (
- aspectRatio *
- (item.data.box[2] / item.data.box[3])
- ).toFixed(2)
- : "N/A";
- const areaPx =
- Array.isArray(item.data.box) &&
- item.data.box.length >= 4
- ? Math.round(
- (config.cameras[event.camera]?.detect?.width ??
- 0) *
- (config.cameras[event.camera]?.detect
- ?.height ?? 0) *
- (item.data.box[2] * item.data.box[3]),
- )
- : undefined;
- const areaPct =
- Array.isArray(item.data.box) &&
- item.data.box.length >= 4
- ? (item.data.box[2] * item.data.box[3]).toFixed(4)
- : undefined;
-
return (
<div
key={`${item.timestamp}-${item.source_id ?? ""}-${idx}`}
@@ -770,11 +732,7 @@ export function TrackingDetails({
>
<LifecycleIconRow
item={item}
- isActive={isActive}
- formattedEventTimestamp={formattedEventTimestamp}
- ratio={ratio}
- areaPx={areaPx}
- areaPct={areaPct}
+ event={event}
onClick={() => handleLifecycleClick(item)}
setSelectedZone={setSelectedZone}
getZoneColor={getZoneColor}
@@ -798,11 +756,7 @@ export function TrackingDetails({
type LifecycleIconRowProps = {
item: TrackingDetailsSequence;
- isActive?: boolean;
- formattedEventTimestamp: string;
- ratio: string;
- areaPx?: number;
- areaPct?: string;
+ event: Event;
onClick: () => void;
setSelectedZone: (z: string) => void;
getZoneColor: (zoneName: string) => number[] | undefined;
@@ -812,11 +766,7 @@ type LifecycleIconRowProps = {
function LifecycleIconRow({
item,
- isActive,
- formattedEventTimestamp,
- ratio,
- areaPx,
- areaPct,
+ event,
onClick,
setSelectedZone,
getZoneColor,
@@ -826,9 +776,101 @@ function LifecycleIconRow({
const { t } = useTranslation(["views/explore", "components/player"]);
const { data: config } = useSWR<FrigateConfig>("config");
const [isOpen, setIsOpen] = useState(false);
-
const navigate = useNavigate();
+ const aspectRatio = useMemo(() => {
+ if (!config) {
+ return 16 / 9;
+ }
+
+ return (
+ config.cameras[event.camera].detect.width /
+ config.cameras[event.camera].detect.height
+ );
+ }, [config, event]);
+
+ const isActive = useMemo(
+ () => Math.abs((effectiveTime ?? 0) - (item.timestamp ?? 0)) <= 0.5,
+ [effectiveTime, item.timestamp],
+ );
+
+ const formattedEventTimestamp = useMemo(
+ () =>
+ config
+ ? formatUnixTimestampToDateTime(item.timestamp ?? 0, {
+ timezone: config.ui.timezone,
+ date_format:
+ config.ui.time_format == "24hour"
+ ? t("time.formattedTimestampHourMinuteSecond.24hour", {
+ ns: "common",
+ })
+ : t("time.formattedTimestampHourMinuteSecond.12hour", {
+ ns: "common",
+ }),
+ time_style: "medium",
+ date_style: "medium",
+ })
+ : "",
+ [config, item.timestamp, t],
+ );
+
+ const ratio = useMemo(
+ () =>
+ Array.isArray(item.data.box) && item.data.box.length >= 4
+ ? (aspectRatio * (item.data.box[2] / item.data.box[3])).toFixed(2)
+ : "N/A",
+ [aspectRatio, item.data.box],
+ );
+
+ const areaPx = useMemo(
+ () =>
+ Array.isArray(item.data.box) && item.data.box.length >= 4
+ ? Math.round(
+ (config?.cameras[event.camera]?.detect?.width ?? 0) *
+ (config?.cameras[event.camera]?.detect?.height ?? 0) *
+ (item.data.box[2] * item.data.box[3]),
+ )
+ : undefined,
+ [config, event.camera, item.data.box],
+ );
+
+ const attributeAreaPx = useMemo(
+ () =>
+ Array.isArray(item.data.attribute_box) &&
+ item.data.attribute_box.length >= 4
+ ? Math.round(
+ (config?.cameras[event.camera]?.detect?.width ?? 0) *
+ (config?.cameras[event.camera]?.detect?.height ?? 0) *
+ (item.data.attribute_box[2] * item.data.attribute_box[3]),
+ )
+ : undefined,
+ [config, event.camera, item.data.attribute_box],
+ );
+
+ const attributeAreaPct = useMemo(
+ () =>
+ Array.isArray(item.data.attribute_box) &&
+ item.data.attribute_box.length >= 4
+ ? (item.data.attribute_box[2] * item.data.attribute_box[3]).toFixed(4)
+ : undefined,
+ [item.data.attribute_box],
+ );
+
+ const areaPct = useMemo(
+ () =>
+ Array.isArray(item.data.box) && item.data.box.length >= 4
+ ? (item.data.box[2] * item.data.box[3]).toFixed(4)
+ : undefined,
+ [item.data.box],
+ );
+
+ const score = useMemo(() => {
+ if (item.data.score !== undefined) {
+ return (item.data.score * 100).toFixed(0) + "%";
+ }
+ return "N/A";
+ }, [item.data.score]);
+
return (
<div
role="button"
@@ -856,16 +898,28 @@ function LifecycleIconRow({
<div className="text-md flex items-start break-words text-left">
{getLifecycleItemDescription(item)}
</div>
- <div className="mt-1 flex flex-wrap items-center gap-2 text-xs text-secondary-foreground md:gap-5">
- <div className="flex items-center gap-1">
+ <div className="my-2 ml-2 flex flex-col flex-wrap items-start gap-1.5 text-xs text-secondary-foreground">
+ <div className="flex items-center gap-1.5">
+ <span className="text-primary-variant">
+ {t("trackingDetails.lifecycleItemDesc.header.score")}
+ </span>
+ <span className="font-medium text-primary">{score}</span>
+ </div>
+ <div className="flex items-center gap-1.5">
<span className="text-primary-variant">
{t("trackingDetails.lifecycleItemDesc.header.ratio")}
</span>
<span className="font-medium text-primary">{ratio}</span>
</div>
- <div className="flex items-center gap-1">
+ <div className="flex items-center gap-1.5">
<span className="text-primary-variant">
- {t("trackingDetails.lifecycleItemDesc.header.area")}
+ {t("trackingDetails.lifecycleItemDesc.header.area")}{" "}
+ {attributeAreaPx !== undefined &&
+ attributeAreaPct !== undefined && (
+ <span className="text-primary-variant">
+ ({getTranslatedLabel(item.data.label)})
+ </span>
+ )}
</span>
{areaPx !== undefined && areaPct !== undefined ? (
<span className="font-medium text-primary">
@@ -876,9 +930,25 @@ function LifecycleIconRow({
<span>N/A</span>
)}
</div>
+ {attributeAreaPx !== undefined &&
+ attributeAreaPct !== undefined && (
+ <div className="flex items-center gap-1.5">
+ <span className="text-primary-variant">
+ {t("trackingDetails.lifecycleItemDesc.header.area")} (
+ {getTranslatedLabel(item.data.attribute)})
+ </span>
+ <span className="font-medium text-primary">
+ {t("information.pixels", {
+ ns: "common",
+ area: attributeAreaPx,
+ })}{" "}
+ · {attributeAreaPct}%
+ </span>
+ </div>
+ )}
{item.data?.zones && item.data.zones.length > 0 && (
- <div className="flex flex-wrap items-center gap-2">
+ <div className="mt-1 flex flex-wrap items-center gap-2">
{item.data.zones.map((zone, zidx) => {
const color = getZoneColor(zone)?.join(",") ?? "0,0,0";
return (
diff --git a/web/src/components/player/MsePlayer.tsx b/web/src/components/player/MsePlayer.tsx
index 7b78b53bc4..576fc93d61 100644
--- a/web/src/components/player/MsePlayer.tsx
+++ b/web/src/components/player/MsePlayer.tsx
@@ -82,6 +82,7 @@ function MSEPlayer({
[key: string]: (msg: { value: string; type: string }) => void;
}>({});
const msRef = useRef<MediaSource | null>(null);
+ const mseCodecRef = useRef<string | null>(null);
const wsURL = useMemo(() => {
return `${baseUrl.replace(/^http/, "ws")}live/mse/api/ws?src=${camera}`;
@@ -93,6 +94,10 @@ function MSEPlayer({
console.error(
`${camera} - MSE error '${error}': ${description} See the documentation: https://docs.frigate.video/configuration/live/#live-player-error-messages`,
);
+ if (mseCodecRef.current) {
+ // eslint-disable-next-line no-console
+ console.error(`${camera} - MSE codec in use: ${mseCodecRef.current}`);
+ }
onError?.(error);
},
[camera, onError],
@@ -299,6 +304,9 @@ function MSEPlayer({
onmessageRef.current["mse"] = (msg) => {
if (msg.type !== "mse") return;
+ // Store the codec value for error logging
+ mseCodecRef.current = msg.value;
+
let sb: SourceBuffer | undefined;
try {
sb = msRef.current?.addSourceBuffer(msg.value);
diff --git a/web/src/types/timeline.ts b/web/src/types/timeline.ts
index c8e5f7543a..0de0674062 100644
--- a/web/src/types/timeline.ts
+++ b/web/src/types/timeline.ts
@@ -16,6 +16,7 @@ export type TrackingDetailsSequence = {
data: {
camera: string;
label: string;
+ score: number;
sub_label: string;
box?: [number, number, number, number];
region: [number, number, number, number];
diff --git a/web/src/views/live/LiveCameraView.tsx b/web/src/views/live/LiveCameraView.tsx
index 65257326fe..ada72bee37 100644
--- a/web/src/views/live/LiveCameraView.tsx
+++ b/web/src/views/live/LiveCameraView.tsx
@@ -1376,329 +1376,343 @@ function FrigateCameraFeatures({
title={t("cameraSettings.title", { camera })}
/>
</DrawerTrigger>
- <DrawerContent className="rounded-2xl px-2 py-4">
- <div className="mt-2 flex flex-col gap-2">
- {isAdmin && (
- <>
- <FilterSwitch
- label={t("cameraSettings.cameraEnabled")}
- isChecked={enabledState == "ON"}
- onCheckedChange={() =>
- sendEnabled(enabledState == "ON" ? "OFF" : "ON")
- }
- />
- <FilterSwitch
- label={t("cameraSettings.objectDetection")}
- isChecked={detectState == "ON"}
- onCheckedChange={() =>
- sendDetect(detectState == "ON" ? "OFF" : "ON")
- }
- />
- {recordingEnabled && (
- <FilterSwitch
- label={t("cameraSettings.recording")}
- isChecked={recordState == "ON"}
- onCheckedChange={() =>
- sendRecord(recordState == "ON" ? "OFF" : "ON")
- }
- />
- )}
- <FilterSwitch
- label={t("cameraSettings.snapshots")}
- isChecked={snapshotState == "ON"}
- onCheckedChange={() =>
- sendSnapshot(snapshotState == "ON" ? "OFF" : "ON")
- }
- />
- {audioDetectEnabled && (
+ <DrawerContent className="max-h-[75dvh] overflow-hidden rounded-2xl">
+ <div className="scrollbar-container mt-2 flex h-auto flex-col gap-2 overflow-y-auto px-2 py-4">
+ <>
+ {isAdmin && (
+ <>
<FilterSwitch
- label={t("cameraSettings.audioDetection")}
- isChecked={audioState == "ON"}
+ label={t("cameraSettings.cameraEnabled")}
+ isChecked={enabledState == "ON"}
onCheckedChange={() =>
- sendAudio(audioState == "ON" ? "OFF" : "ON")
+ sendEnabled(enabledState == "ON" ? "OFF" : "ON")
}
/>
- )}
- {audioDetectEnabled && transcriptionEnabled && (
<FilterSwitch
- label={t("cameraSettings.transcription")}
- disabled={audioState == "OFF"}
- isChecked={transcriptionState == "ON"}
+ label={t("cameraSettings.objectDetection")}
+ isChecked={detectState == "ON"}
onCheckedChange={() =>
- sendTranscription(transcriptionState == "ON" ? "OFF" : "ON")
+ sendDetect(detectState == "ON" ? "OFF" : "ON")
}
/>
- )}
- {autotrackingEnabled && (
+ {recordingEnabled && (
+ <FilterSwitch
+ label={t("cameraSettings.recording")}
+ isChecked={recordState == "ON"}
+ onCheckedChange={() =>
+ sendRecord(recordState == "ON" ? "OFF" : "ON")
+ }
+ />
+ )}
<FilterSwitch
- label={t("cameraSettings.autotracking")}
- isChecked={autotrackingState == "ON"}
+ label={t("cameraSettings.snapshots")}
+ isChecked={snapshotState == "ON"}
onCheckedChange={() =>
- sendAutotracking(autotrackingState == "ON" ? "OFF" : "ON")
+ sendSnapshot(snapshotState == "ON" ? "OFF" : "ON")
}
/>
- )}
- </>
- )}
- </div>
+ {audioDetectEnabled && (
+ <FilterSwitch
+ label={t("cameraSettings.audioDetection")}
+ isChecked={audioState == "ON"}
+ onCheckedChange={() =>
+ sendAudio(audioState == "ON" ? "OFF" : "ON")
+ }
+ />
+ )}
+ {audioDetectEnabled && transcriptionEnabled && (
+ <FilterSwitch
+ label={t("cameraSettings.transcription")}
+ disabled={audioState == "OFF"}
+ isChecked={transcriptionState == "ON"}
+ onCheckedChange={() =>
+ sendTranscription(
+ transcriptionState == "ON" ? "OFF" : "ON",
+ )
+ }
+ />
+ )}
+ {autotrackingEnabled && (
+ <FilterSwitch
+ label={t("cameraSettings.autotracking")}
+ isChecked={autotrackingState == "ON"}
+ onCheckedChange={() =>
+ sendAutotracking(autotrackingState == "ON" ? "OFF" : "ON")
+ }
+ />
+ )}
+ </>
+ )}
- <div className="mt-3 flex flex-col gap-5">
- {!isRestreamed && (
- <div className="flex flex-col gap-2 p-2">
- <Label>{t("stream.title")}</Label>
- <div className="flex flex-row items-center gap-1 text-sm text-muted-foreground">
- <LuX className="size-4 text-danger" />
- <div>
- {t("streaming.restreaming.disabled", {
- ns: "components/dialog",
- })}
- </div>
- <Popover>
- <PopoverTrigger asChild>
- <div className="cursor-pointer p-0">
- <LuInfo className="size-4" />
- <span className="sr-only">
- {t("button.info", { ns: "common" })}
- </span>
- </div>
- </PopoverTrigger>
- <PopoverContent className="w-80 text-xs">
- {t("streaming.restreaming.desc.title", {
- ns: "components/dialog",
- })}
- <div className="mt-2 flex items-center text-primary">
- <Link
- to={getLocaleDocUrl("configuration/live")}
- target="_blank"
- rel="noopener noreferrer"
- className="inline"
- >
- {t("readTheDocumentation", { ns: "common" })}
- <LuExternalLink className="ml-2 inline-flex size-3" />
- </Link>
+ <div className="mt-3 flex flex-col gap-5">
+ {!isRestreamed && (
+ <div className="flex flex-col gap-2 p-2">
+ <Label>{t("stream.title")}</Label>
+ <div className="flex flex-row items-center gap-1 text-sm text-muted-foreground">
+ <LuX className="size-4 text-danger" />
+ <div>
+ {t("streaming.restreaming.disabled", {
+ ns: "components/dialog",
+ })}
</div>
- </PopoverContent>
- </Popover>
- </div>
- </div>
- )}
- {isRestreamed && Object.values(camera.live.streams).length > 0 && (
- <div className="mt-1 p-2">
- <div className="mb-1 text-sm">{t("stream.title")}</div>
- <Select
- value={streamName}
- onValueChange={(value) => {
- setStreamName?.(value);
- }}
- disabled={debug}
- >
- <SelectTrigger className="w-full">
- <SelectValue>
- {Object.keys(camera.live.streams).find(
- (key) => camera.live.streams[key] === streamName,
- )}
- </SelectValue>
- </SelectTrigger>
-
- <SelectContent>
- <SelectGroup>
- {Object.entries(camera.live.streams).map(
- ([stream, name]) => (
- <SelectItem
- key={stream}
- className="cursor-pointer"
- value={name}
- >
- {stream}
- </SelectItem>
- ),
- )}
- </SelectGroup>
- </SelectContent>
- </Select>
-
- {debug && (
- <div className="flex flex-row items-center gap-1 text-sm text-muted-foreground">
- <>
- <LuX className="size-8 text-danger" />
- <div>{t("stream.debug.picker")}</div>
- </>
+ <Popover>
+ <PopoverTrigger asChild>
+ <div className="cursor-pointer p-0">
+ <LuInfo className="size-4" />
+ <span className="sr-only">
+ {t("button.info", { ns: "common" })}
+ </span>
+ </div>
+ </PopoverTrigger>
+ <PopoverContent className="w-80 text-xs">
+ {t("streaming.restreaming.desc.title", {
+ ns: "components/dialog",
+ })}
+ <div className="mt-2 flex items-center text-primary">
+ <Link
+ to={getLocaleDocUrl("configuration/live")}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="inline"
+ >
+ {t("readTheDocumentation", { ns: "common" })}
+ <LuExternalLink className="ml-2 inline-flex size-3" />
+ </Link>
+ </div>
+ </PopoverContent>
+ </Popover>
+ </div>
</div>
)}
+ {isRestreamed &&
+ Object.values(camera.live.streams).length > 0 && (
+ <div className="mt-1 p-2">
+ <div className="mb-1 text-sm">{t("stream.title")}</div>
+ <Select
+ value={streamName}
+ onValueChange={(value) => {
+ setStreamName?.(value);
+ }}
+ disabled={debug}
+ >
+ <SelectTrigger className="w-full">
+ <SelectValue>
+ {Object.keys(camera.live.streams).find(
+ (key) => camera.live.streams[key] === streamName,
+ )}
+ </SelectValue>
+ </SelectTrigger>
+
+ <SelectContent>
+ <SelectGroup>
+ {Object.entries(camera.live.streams).map(
+ ([stream, name]) => (
+ <SelectItem
+ key={stream}
+ className="cursor-pointer"
+ value={name}
+ >
+ {stream}
+ </SelectItem>
+ ),
+ )}
+ </SelectGroup>
+ </SelectContent>
+ </Select>
+
+ {debug && (
+ <div className="flex flex-row items-center gap-1 text-sm text-muted-foreground">
+ <>
+ <LuX className="size-8 text-danger" />
+ <div>{t("stream.debug.picker")}</div>
+ </>
+ </div>
+ )}
- {preferredLiveMode != "jsmpeg" && !debug && isRestreamed && (
- <div className="mt-1 flex flex-row items-center gap-1 text-sm text-muted-foreground">
- {supportsAudioOutput ? (
- <>
- <LuCheck className="size-4 text-success" />
- <div>{t("stream.audio.available")}</div>
- </>
- ) : (
- <>
- <LuX className="size-4 text-danger" />
- <div>{t("stream.audio.unavailable")}</div>
- <Popover>
- <PopoverTrigger asChild>
- <div className="cursor-pointer p-0">
- <LuInfo className="size-4" />
- <span className="sr-only">
- {t("button.info", { ns: "common" })}
- </span>
- </div>
- </PopoverTrigger>
- <PopoverContent className="w-52 text-xs">
- {t("stream.audio.tips.title")}
- <div className="mt-2 flex items-center text-primary">
- <Link
- to={getLocaleDocUrl("configuration/live")}
- target="_blank"
- rel="noopener noreferrer"
- className="inline"
- >
- {t("readTheDocumentation", { ns: "common" })}
- <LuExternalLink className="ml-2 inline-flex size-3" />
- </Link>
+ {preferredLiveMode != "jsmpeg" &&
+ !debug &&
+ isRestreamed && (
+ <div className="mt-1 flex flex-row items-center gap-1 text-sm text-muted-foreground">
+ {supportsAudioOutput ? (
+ <>
+ <LuCheck className="size-4 text-success" />
+ <div>{t("stream.audio.available")}</div>
+ </>
+ ) : (
+ <>
+ <LuX className="size-4 text-danger" />
+ <div>{t("stream.audio.unavailable")}</div>
+ <Popover>
+ <PopoverTrigger asChild>
+ <div className="cursor-pointer p-0">
+ <LuInfo className="size-4" />
+ <span className="sr-only">
+ {t("button.info", { ns: "common" })}
+ </span>
+ </div>
+ </PopoverTrigger>
+ <PopoverContent className="w-52 text-xs">
+ {t("stream.audio.tips.title")}
+ <div className="mt-2 flex items-center text-primary">
+ <Link
+ to={getLocaleDocUrl("configuration/live")}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="inline"
+ >
+ {t("readTheDocumentation", {
+ ns: "common",
+ })}
+ <LuExternalLink className="ml-2 inline-flex size-3" />
+ </Link>
+ </div>
+ </PopoverContent>
+ </Popover>
+ </>
+ )}
+ </div>
+ )}
+ {preferredLiveMode != "jsmpeg" &&
+ !debug &&
+ isRestreamed &&
+ supportsAudioOutput && (
+ <div className="flex flex-row items-center gap-1 text-sm text-muted-foreground">
+ {supports2WayTalk ? (
+ <>
+ <LuCheck className="size-4 text-success" />
+ <div>{t("stream.twoWayTalk.available")}</div>
+ </>
+ ) : (
+ <>
+ <LuX className="size-4 text-danger" />
+ <div>{t("stream.twoWayTalk.unavailable")}</div>
+ <Popover>
+ <PopoverTrigger asChild>
+ <div className="cursor-pointer p-0">
+ <LuInfo className="size-4" />
+ <span className="sr-only">
+ {t("button.info", { ns: "common" })}
+ </span>
+ </div>
+ </PopoverTrigger>
+ <PopoverContent className="w-52 text-xs">
+ {t("stream.twoWayTalk.tips")}
+ <div className="mt-2 flex items-center text-primary">
+ <Link
+ to={getLocaleDocUrl(
+ "configuration/live/#webrtc-extra-configuration",
+ )}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="inline"
+ >
+ {t("readTheDocumentation", {
+ ns: "common",
+ })}
+ <LuExternalLink className="ml-2 inline-flex size-3" />
+ </Link>
+ </div>
+ </PopoverContent>
+ </Popover>
+ </>
+ )}
+ </div>
+ )}
+ {preferredLiveMode == "jsmpeg" && isRestreamed && (
+ <div className="mt-2 flex flex-col items-center gap-3">
+ <div className="flex flex-row items-center gap-2">
+ <IoIosWarning className="mr-1 size-8 text-danger" />
+ <p className="text-sm">
+ {t("stream.lowBandwidth.tips")}
+ </p>
+ </div>
+ <Button
+ className={`flex items-center gap-2.5 rounded-lg`}
+ aria-label={t("stream.lowBandwidth.resetStream")}
+ variant="outline"
+ size="sm"
+ disabled={debug}
+ onClick={() => setLowBandwidth(false)}
+ >
+ <MdOutlineRestartAlt className="size-5 text-primary-variant" />
+ <div className="text-primary-variant">
+ {t("stream.lowBandwidth.resetStream")}
</div>
- </PopoverContent>
- </Popover>
- </>
- )}
- </div>
- )}
- {preferredLiveMode != "jsmpeg" &&
- !debug &&
- isRestreamed &&
- supportsAudioOutput && (
- <div className="flex flex-row items-center gap-1 text-sm text-muted-foreground">
- {supports2WayTalk ? (
- <>
- <LuCheck className="size-4 text-success" />
- <div>{t("stream.twoWayTalk.available")}</div>
- </>
- ) : (
- <>
- <LuX className="size-4 text-danger" />
- <div>{t("stream.twoWayTalk.unavailable")}</div>
- <Popover>
- <PopoverTrigger asChild>
- <div className="cursor-pointer p-0">
- <LuInfo className="size-4" />
- <span className="sr-only">
- {t("button.info", { ns: "common" })}
- </span>
- </div>
- </PopoverTrigger>
- <PopoverContent className="w-52 text-xs">
- {t("stream.twoWayTalk.tips")}
- <div className="mt-2 flex items-center text-primary">
- <Link
- to={getLocaleDocUrl(
- "configuration/live/#webrtc-extra-configuration",
- )}
- target="_blank"
- rel="noopener noreferrer"
- className="inline"
- >
- {t("readTheDocumentation", { ns: "common" })}
- <LuExternalLink className="ml-2 inline-flex size-3" />
- </Link>
- </div>
- </PopoverContent>
- </Popover>
- </>
+ </Button>
+ </div>
)}
</div>
)}
- {preferredLiveMode == "jsmpeg" && isRestreamed && (
- <div className="mt-2 flex flex-col items-center gap-3">
- <div className="flex flex-row items-center gap-2">
- <IoIosWarning className="mr-1 size-8 text-danger" />
- <p className="text-sm">{t("stream.lowBandwidth.tips")}</p>
- </div>
+ <div className="flex flex-col gap-1 px-2">
+ <div className="mb-1 text-sm font-medium leading-none">
+ {t("manualRecording.title")}
+ </div>
+ <div className="flex flex-row items-stretch gap-2">
+ <Button
+ onClick={handleSnapshotClick}
+ disabled={!cameraEnabled || debug || isSnapshotLoading}
+ className="h-auto w-full whitespace-normal"
+ >
+ {isSnapshotLoading && (
+ <ActivityIndicator className="mr-2 size-4" />
+ )}
+ {t("snapshot.takeSnapshot")}
+ </Button>
<Button
- className={`flex items-center gap-2.5 rounded-lg`}
- aria-label={t("stream.lowBandwidth.resetStream")}
- variant="outline"
- size="sm"
+ onClick={handleEventButtonClick}
+ className={cn(
+ "h-auto w-full whitespace-normal",
+ isRecording &&
+ "animate-pulse bg-red-500 hover:bg-red-600",
+ )}
disabled={debug}
- onClick={() => setLowBandwidth(false)}
>
- <MdOutlineRestartAlt className="size-5 text-primary-variant" />
- <div className="text-primary-variant">
- {t("stream.lowBandwidth.resetStream")}
- </div>
+ {t("manualRecording." + (isRecording ? "end" : "start"))}
</Button>
</div>
- )}
- </div>
- )}
- <div className="flex flex-col gap-1 px-2">
- <div className="mb-1 text-sm font-medium leading-none">
- {t("manualRecording.title")}
- </div>
- <div className="flex flex-row items-stretch gap-2">
- <Button
- onClick={handleSnapshotClick}
- disabled={!cameraEnabled || debug || isSnapshotLoading}
- className="h-auto w-full whitespace-normal"
- >
- {isSnapshotLoading && (
- <ActivityIndicator className="mr-2 size-4" />
- )}
- {t("snapshot.takeSnapshot")}
- </Button>
- <Button
- onClick={handleEventButtonClick}
- className={cn(
- "h-auto w-full whitespace-normal",
- isRecording && "animate-pulse bg-red-500 hover:bg-red-600",
- )}
- disabled={debug}
- >
- {t("manualRecording." + (isRecording ? "end" : "start"))}
- </Button>
- </div>
- <p className="text-sm text-muted-foreground">
- {t("manualRecording.tips")}
- </p>
- </div>
- {isRestreamed && (
- <>
- <div className="flex flex-col gap-2">
- <FilterSwitch
- label={t("manualRecording.playInBackground.label")}
- isChecked={playInBackground}
- onCheckedChange={(checked) => {
- setPlayInBackground(checked);
- }}
- disabled={debug}
- />
- <p className="mx-2 -mt-2 text-sm text-muted-foreground">
- {t("manualRecording.playInBackground.desc")}
+ <p className="text-sm text-muted-foreground">
+ {t("manualRecording.tips")}
</p>
</div>
- <div className="flex flex-col gap-2">
+ {isRestreamed && (
+ <>
+ <div className="flex flex-col gap-2">
+ <FilterSwitch
+ label={t("manualRecording.playInBackground.label")}
+ isChecked={playInBackground}
+ onCheckedChange={(checked) => {
+ setPlayInBackground(checked);
+ }}
+ disabled={debug}
+ />
+ <p className="mx-2 -mt-2 text-sm text-muted-foreground">
+ {t("manualRecording.playInBackground.desc")}
+ </p>
+ </div>
+ <div className="flex flex-col gap-2">
+ <FilterSwitch
+ label={t("manualRecording.showStats.label")}
+ isChecked={showStats}
+ onCheckedChange={(checked) => {
+ setShowStats(checked);
+ }}
+ disabled={debug}
+ />
+ <p className="mx-2 -mt-2 text-sm text-muted-foreground">
+ {t("manualRecording.showStats.desc")}
+ </p>
+ </div>
+ </>
+ )}
+ <div className="mb-3 flex flex-col">
<FilterSwitch
- label={t("manualRecording.showStats.label")}
- isChecked={showStats}
- onCheckedChange={(checked) => {
- setShowStats(checked);
- }}
- disabled={debug}
+ label={t("streaming.debugView", { ns: "components/dialog" })}
+ isChecked={debug}
+ onCheckedChange={(checked) => setDebug(checked)}
/>
- <p className="mx-2 -mt-2 text-sm text-muted-foreground">
- {t("manualRecording.showStats.desc")}
- </p>
</div>
- </>
- )}
- <div className="mb-3 flex flex-col">
- <FilterSwitch
- label={t("streaming.debugView", { ns: "components/dialog" })}
- isChecked={debug}
- onCheckedChange={(checked) => setDebug(checked)}
- />
- </div>
+ </div>
+ </>
</div>
</DrawerContent>
</Drawer>
diff --git a/web/src/views/settings/AuthenticationView.tsx b/web/src/views/settings/AuthenticationView.tsx
index 5c11d89143..19f157b467 100644
--- a/web/src/views/settings/AuthenticationView.tsx
+++ b/web/src/views/settings/AuthenticationView.tsx
@@ -784,7 +784,7 @@ export default function AuthenticationView({
return (
<div className="flex size-full flex-col">
<Toaster position="top-center" closeButton={true} />
- <div className="scrollbar-container order-last mb-10 mt-2 flex h-full w-full flex-col overflow-y-auto pb-2 md:order-none md:mr-3 md:mt-0">
+ <div className="scrollbar-container order-last mb-2 mt-2 flex h-full w-full flex-col overflow-y-auto pb-2 md:order-none md:mr-3 md:mt-0">
{section === "users" && UsersSection}
{section === "roles" && RolesSection}
{!section && (
diff --git a/web/src/views/settings/CameraManagementView.tsx b/web/src/views/settings/CameraManagementView.tsx
index 1a626fa022..8f1b5eae58 100644
--- a/web/src/views/settings/CameraManagementView.tsx
+++ b/web/src/views/settings/CameraManagementView.tsx
@@ -65,7 +65,7 @@ export default function CameraManagementView({
closeButton
/>
<div className="flex size-full flex-col md:flex-row">
- <div className="scrollbar-container order-last mb-10 mt-2 flex h-full w-full flex-col overflow-y-auto pb-2 md:order-none">
+ <div className="scrollbar-container order-last mb-2 mt-2 flex h-full w-full flex-col overflow-y-auto pb-2 md:order-none">
{viewMode === "settings" ? (
<>
<Heading as="h4" className="mb-2">
diff --git a/web/src/views/settings/CameraReviewSettingsView.tsx b/web/src/views/settings/CameraReviewSettingsView.tsx
index 47ea5c22aa..7a7b92e4e3 100644
--- a/web/src/views/settings/CameraReviewSettingsView.tsx
+++ b/web/src/views/settings/CameraReviewSettingsView.tsx
@@ -298,7 +298,7 @@ export default function CameraReviewSettingsView({
<>
<div className="flex size-full flex-col md:flex-row">
<Toaster position="top-center" closeButton={true} />
- <div className="scrollbar-container order-last mb-10 mt-2 flex h-full w-full flex-col overflow-y-auto pb-2 md:order-none">
+ <div className="scrollbar-container order-last mb-2 mt-2 flex h-full w-full flex-col overflow-y-auto pb-2 md:order-none">
<Heading as="h4" className="mb-2">
{t("cameraReview.title")}
</Heading>
diff --git a/web/src/views/settings/EnrichmentsSettingsView.tsx b/web/src/views/settings/EnrichmentsSettingsView.tsx
index e3b0626b96..6aba50dd30 100644
--- a/web/src/views/settings/EnrichmentsSettingsView.tsx
+++ b/web/src/views/settings/EnrichmentsSettingsView.tsx
@@ -244,7 +244,7 @@ export default function EnrichmentsSettingsView({
return (
<div className="flex size-full flex-col md:flex-row">
<Toaster position="top-center" closeButton={true} />
- <div className="scrollbar-container order-last mb-10 mt-2 flex h-full w-full flex-col overflow-y-auto pb-2 md:order-none">
+ <div className="scrollbar-container order-last mb-2 mt-2 flex h-full w-full flex-col overflow-y-auto pb-2 md:order-none">
<Heading as="h4" className="mb-2">
{t("enrichments.title")}
</Heading>
diff --git a/web/src/views/settings/FrigatePlusSettingsView.tsx b/web/src/views/settings/FrigatePlusSettingsView.tsx
index 52af94354d..80d98b1975 100644
--- a/web/src/views/settings/FrigatePlusSettingsView.tsx
+++ b/web/src/views/settings/FrigatePlusSettingsView.tsx
@@ -211,7 +211,7 @@ export default function FrigatePlusSettingsView({
<>
<div className="flex size-full flex-col md:flex-row">
<Toaster position="top-center" closeButton={true} />
- <div className="scrollbar-container order-last mb-10 mt-2 flex h-full w-full flex-col overflow-y-auto pb-2 md:order-none">
+ <div className="scrollbar-container order-last mb-2 mt-2 flex h-full w-full flex-col overflow-y-auto pb-2 md:order-none">
<Heading as="h4" className="mb-2">
{t("frigatePlus.title")}
</Heading>
diff --git a/web/src/views/settings/MasksAndZonesView.tsx b/web/src/views/settings/MasksAndZonesView.tsx
index 27c542e875..efeaa9be08 100644
--- a/web/src/views/settings/MasksAndZonesView.tsx
+++ b/web/src/views/settings/MasksAndZonesView.tsx
@@ -434,7 +434,7 @@ export default function MasksAndZonesView({
{cameraConfig && editingPolygons && (
<div className="flex size-full flex-col md:flex-row">
<Toaster position="top-center" closeButton={true} />
- <div className="scrollbar-container order-last mb-10 mt-2 flex h-full w-full flex-col overflow-y-auto rounded-lg border-[1px] border-secondary-foreground bg-background_alt p-2 md:order-none md:mr-3 md:mt-0 md:w-3/12">
+ <div className="scrollbar-container order-last mb-2 mt-2 flex h-full w-full flex-col overflow-y-auto rounded-lg border-[1px] border-secondary-foreground bg-background_alt p-2 md:order-none md:mr-3 md:mt-0 md:w-3/12">
{editPane == "zone" && (
<ZoneEditPane
polygons={editingPolygons}
diff --git a/web/src/views/settings/MotionTunerView.tsx b/web/src/views/settings/MotionTunerView.tsx
index 34aaac22fa..1cdaa54f1e 100644
--- a/web/src/views/settings/MotionTunerView.tsx
+++ b/web/src/views/settings/MotionTunerView.tsx
@@ -191,7 +191,7 @@ export default function MotionTunerView({
return (
<div className="flex size-full flex-col md:flex-row">
<Toaster position="top-center" closeButton={true} />
- <div className="scrollbar-container order-last mb-10 mt-2 flex h-full w-full flex-col overflow-y-auto rounded-lg border-[1px] border-secondary-foreground bg-background_alt p-2 md:order-none md:mr-3 md:mt-0 md:w-3/12">
+ <div className="scrollbar-container order-last mb-2 mt-2 flex h-full w-full flex-col overflow-y-auto rounded-lg border-[1px] border-secondary-foreground bg-background_alt p-2 md:order-none md:mr-3 md:mt-0 md:w-3/12">
<Heading as="h4" className="mb-2">
{t("motionDetectionTuner.title")}
</Heading>
diff --git a/web/src/views/settings/NotificationsSettingsView.tsx b/web/src/views/settings/NotificationsSettingsView.tsx
index 6280ca6a88..77da163861 100644
--- a/web/src/views/settings/NotificationsSettingsView.tsx
+++ b/web/src/views/settings/NotificationsSettingsView.tsx
@@ -331,7 +331,7 @@ export default function NotificationView({
if (!("Notification" in window) || !window.isSecureContext) {
return (
- <div className="scrollbar-container order-last mb-10 mt-2 flex h-full w-full flex-col overflow-y-auto pb-2 md:order-none">
+ <div className="scrollbar-container order-last mb-2 mt-2 flex h-full w-full flex-col overflow-y-auto pb-2 md:order-none">
<div className="grid w-full grid-cols-1 gap-4 md:grid-cols-2">
<div className="col-span-1">
<Heading as="h4" className="mb-2">
@@ -385,7 +385,7 @@ export default function NotificationView({
<>
<div className="flex size-full flex-col md:flex-row">
<Toaster position="top-center" closeButton={true} />
- <div className="scrollbar-container order-last mb-10 mt-2 flex h-full w-full flex-col overflow-y-auto px-2 md:order-none">
+ <div className="scrollbar-container order-last mb-2 mt-2 flex h-full w-full flex-col overflow-y-auto px-2 md:order-none">
<div
className={cn(
isAdmin && "grid w-full grid-cols-1 gap-4 md:grid-cols-2",
diff --git a/web/src/views/settings/ObjectSettingsView.tsx b/web/src/views/settings/ObjectSettingsView.tsx
index 765e5e75b1..53ad85efac 100644
--- a/web/src/views/settings/ObjectSettingsView.tsx
+++ b/web/src/views/settings/ObjectSettingsView.tsx
@@ -164,7 +164,7 @@ export default function ObjectSettingsView({
return (
<div className="mt-1 flex size-full flex-col pb-2 md:flex-row">
<Toaster position="top-center" closeButton={true} />
- <div className="scrollbar-container order-last mb-10 mt-2 flex h-full w-full flex-col overflow-y-auto rounded-lg border-[1px] border-secondary-foreground bg-background_alt p-2 md:order-none md:mb-0 md:mr-2 md:mt-0 md:w-3/12">
+ <div className="scrollbar-container order-last mb-2 mt-2 flex h-full w-full flex-col overflow-y-auto rounded-lg border-[1px] border-secondary-foreground bg-background_alt p-2 md:order-none md:mb-0 md:mr-2 md:mt-0 md:w-3/12">
<Heading as="h4" className="mb-2">
{t("debug.title")}
</Heading>
@@ -434,7 +434,7 @@ function ObjectList({ cameraConfig, objects }: ObjectListProps) {
{t("debug.objectShapeFilterDrawing.area")}
</p>
{obj.area ? (
- <>
+ <div className="text-end">
<div className="text-xs">
px: {obj.area.toString()}
</div>
@@ -448,7 +448,7 @@ function ObjectList({ cameraConfig, objects }: ObjectListProps) {
.toFixed(4)
.toString()}
</div>
- </>
+ </div>
) : (
"-"
)}
diff --git a/web/src/views/settings/TriggerView.tsx b/web/src/views/settings/TriggerView.tsx
index 0b004fd823..a0e19f5b2a 100644
--- a/web/src/views/settings/TriggerView.tsx
+++ b/web/src/views/settings/TriggerView.tsx
@@ -440,7 +440,7 @@ export default function TriggerView({
return (
<div className="flex size-full flex-col md:flex-row">
<Toaster position="top-center" closeButton={true} />
- <div className="scrollbar-container order-last mb-10 mt-2 flex h-full w-full flex-col overflow-y-auto pb-2 md:order-none md:mr-3 md:mt-0">
+ <div className="scrollbar-container order-last mb-2 mt-2 flex h-full w-full flex-col overflow-y-auto pb-2 md:order-none md:mr-3 md:mt-0">
{!isSemanticSearchEnabled ? (
<div className="mb-5 flex flex-row items-center justify-between gap-2">
<div className="flex flex-col items-start">
diff --git a/web/src/views/settings/UiSettingsView.tsx b/web/src/views/settings/UiSettingsView.tsx
index 8ec484aa3d..34df0ddc82 100644
--- a/web/src/views/settings/UiSettingsView.tsx
+++ b/web/src/views/settings/UiSettingsView.tsx
@@ -108,7 +108,7 @@ export default function UiSettingsView() {
<>
<div className="flex size-full flex-col md:flex-row">
<Toaster position="top-center" closeButton={true} />
- <div className="scrollbar-container order-last mb-10 mt-2 flex h-full w-full flex-col overflow-y-auto pb-2 md:order-none">
+ <div className="scrollbar-container order-last mb-2 mt-2 flex h-full w-full flex-col overflow-y-auto pb-2 md:order-none">
<Heading as="h4" className="mb-2">
{t("general.title")}
</Heading>