mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-18 17:14:26 +03:00
small fix
This commit is contained in:
parent
7801ff44d2
commit
f60b981ab8
@ -79,7 +79,24 @@ export default function LPRDetailDialog({
|
|||||||
}, [config, event]);
|
}, [config, event]);
|
||||||
|
|
||||||
if (!event) {
|
if (!event) {
|
||||||
return null;
|
return (
|
||||||
|
<Overlay open={open} onOpenChange={setOpen}>
|
||||||
|
<Content
|
||||||
|
className={cn(
|
||||||
|
"scrollbar-container overflow-y-auto",
|
||||||
|
isDesktop &&
|
||||||
|
"max-h-[95dvh] sm:max-w-xl md:max-w-4xl lg:max-w-4xl xl:max-w-7xl",
|
||||||
|
isMobile && "px-4",
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
<Header>
|
||||||
|
<Title>License Plate Image</Title>
|
||||||
|
<Description className="sr-only">License plate image details</Description>
|
||||||
|
</Header>
|
||||||
|
<PlateTab lprImage={lprImage} />
|
||||||
|
</Content>
|
||||||
|
</Overlay>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// content
|
// content
|
||||||
|
|||||||
@ -214,16 +214,18 @@ function LPRAttempt({ attempt, config, onRefresh }: LPRAttemptProps) {
|
|||||||
className="w-full overflow-hidden rounded-t-lg border border-t-0 *:text-card-foreground cursor-pointer"
|
className="w-full overflow-hidden rounded-t-lg border border-t-0 *:text-card-foreground cursor-pointer"
|
||||||
onClick={() => setShowDialog(true)}
|
onClick={() => setShowDialog(true)}
|
||||||
>
|
>
|
||||||
|
<div className="aspect-[2/1] flex items-center justify-center bg-black">
|
||||||
<img
|
<img
|
||||||
className="h-40 w-full"
|
className="h-40 max-w-none"
|
||||||
src={`${baseUrl}clips/lpr/${attempt}`}
|
src={`${baseUrl}clips/lpr/${attempt}`}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div className="flex w-full grow items-center justify-between rounded-b-lg border border-t-0 bg-card p-3 text-card-foreground">
|
<div className="flex w-full grow items-center justify-between rounded-b-lg border border-t-0 bg-card p-3 text-card-foreground">
|
||||||
<div className="flex flex-col items-start text-xs text-primary-variant">
|
<div className="flex flex-col items-start text-xs text-primary-variant">
|
||||||
<div className="capitalize">{data.plate}</div>
|
<div className="capitalize">{data.plate}</div>
|
||||||
<div className="text-success">
|
<div className="text-success">
|
||||||
{Number.parseFloat(data.score) * 100}%
|
{data.score === "0" || !data.score ? "No score" : `${data.score}%`}
|
||||||
</div>
|
</div>
|
||||||
{event && (
|
{event && (
|
||||||
<div className="text-xs text-muted-foreground">
|
<div className="text-xs text-muted-foreground">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user