mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-04 04:27:42 +03:00
Add camera name tooltip to previews in recording view
This commit is contained in:
parent
f39ddbc00d
commit
1d77ddab88
@ -50,6 +50,11 @@ import { useFullscreen } from "@/hooks/use-fullscreen";
|
|||||||
import { useTimezone } from "@/hooks/use-date-utils";
|
import { useTimezone } from "@/hooks/use-date-utils";
|
||||||
import { useTimelineZoom } from "@/hooks/use-timeline-zoom";
|
import { useTimelineZoom } from "@/hooks/use-timeline-zoom";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
import {
|
||||||
|
Tooltip,
|
||||||
|
TooltipContent,
|
||||||
|
TooltipTrigger,
|
||||||
|
} from "@/components/ui/tooltip";
|
||||||
|
|
||||||
type RecordingViewProps = {
|
type RecordingViewProps = {
|
||||||
startCamera: string;
|
startCamera: string;
|
||||||
@ -670,6 +675,8 @@ export function RecordingView({
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<Tooltip>
|
||||||
|
<TooltipTrigger asChild>
|
||||||
<div
|
<div
|
||||||
key={cam}
|
key={cam}
|
||||||
className={
|
className={
|
||||||
@ -695,6 +702,11 @@ export function RecordingView({
|
|||||||
onClick={() => onSelectCamera(cam)}
|
onClick={() => onSelectCamera(cam)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
</TooltipTrigger>
|
||||||
|
<TooltipContent className="smart-capitalize">
|
||||||
|
{cam}
|
||||||
|
</TooltipContent>
|
||||||
|
</Tooltip>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
<div className="w-2" />
|
<div className="w-2" />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user