mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-09 15:05:26 +03:00
Compare commits
No commits in common. "8a718421accc5ff060f7bb1cca33224a589da7c3" and "1cc74480ff3c3fa0ae322f7d0f671da5414ac9fd" have entirely different histories.
8a718421ac
...
1cc74480ff
@ -465,7 +465,6 @@ There are important limitations in HA OS to be aware of:
|
|||||||
|
|
||||||
- Separate local storage for media is not yet supported by Home Assistant
|
- Separate local storage for media is not yet supported by Home Assistant
|
||||||
- AMD GPUs are not supported because HA OS does not include the mesa driver.
|
- AMD GPUs are not supported because HA OS does not include the mesa driver.
|
||||||
- Intel NPUs are not supported because HA OS does not include the NPU firmware.
|
|
||||||
- Nvidia GPUs are not supported because addons do not support the nvidia runtime.
|
- Nvidia GPUs are not supported because addons do not support the nvidia runtime.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|||||||
@ -8,7 +8,6 @@ type EmptyCardProps = {
|
|||||||
className?: string;
|
className?: string;
|
||||||
icon: React.ReactNode;
|
icon: React.ReactNode;
|
||||||
title: string;
|
title: string;
|
||||||
titleHeading?: boolean;
|
|
||||||
description?: string;
|
description?: string;
|
||||||
buttonText?: string;
|
buttonText?: string;
|
||||||
link?: string;
|
link?: string;
|
||||||
@ -17,23 +16,14 @@ export function EmptyCard({
|
|||||||
className,
|
className,
|
||||||
icon,
|
icon,
|
||||||
title,
|
title,
|
||||||
titleHeading = true,
|
|
||||||
description,
|
description,
|
||||||
buttonText,
|
buttonText,
|
||||||
link,
|
link,
|
||||||
}: EmptyCardProps) {
|
}: EmptyCardProps) {
|
||||||
let TitleComponent;
|
|
||||||
|
|
||||||
if (titleHeading) {
|
|
||||||
TitleComponent = <Heading as="h4">{title}</Heading>;
|
|
||||||
} else {
|
|
||||||
TitleComponent = <div>{title}</div>;
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={cn("flex flex-col items-center gap-2", className)}>
|
<div className={cn("flex flex-col items-center gap-2", className)}>
|
||||||
{icon}
|
{icon}
|
||||||
{TitleComponent}
|
<Heading as="h4">{title}</Heading>
|
||||||
{description && (
|
{description && (
|
||||||
<div className="mb-3 text-secondary-foreground">{description}</div>
|
<div className="mb-3 text-secondary-foreground">{description}</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@ -762,9 +762,8 @@ function DetectionReview({
|
|||||||
|
|
||||||
{!loading && currentItems?.length === 0 && (
|
{!loading && currentItems?.length === 0 && (
|
||||||
<EmptyCard
|
<EmptyCard
|
||||||
className="absolute left-[50%] top-[50%] -translate-x-1/2 -translate-y-1/2 items-center text-center"
|
className="y-translate-1/2 absolute left-[50%] top-[50%] -translate-x-1/2"
|
||||||
title={emptyCardData.title}
|
title={emptyCardData.title}
|
||||||
titleHeading={false}
|
|
||||||
description={emptyCardData.description}
|
description={emptyCardData.description}
|
||||||
icon={<LuFolderCheck className="size-16" />}
|
icon={<LuFolderCheck className="size-16" />}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user