mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-09-28 10:56:52 +03:00
* rework live dashboard grid layout and add natural mode * hide natural aspect and layout import on phones * fix merge conflict * add confirmation dialog for clearing groups and streaming settings * add confirmation dialog for natural aspect switch * clean up * remove note * wording tweak * remove unused * fixes
28 lines
672 B
TypeScript
28 lines
672 B
TypeScript
import { cn } from "@/lib/utils";
|
|
|
|
type ImageShadowOverlayProps = {
|
|
upperClassName?: string;
|
|
lowerClassName?: string;
|
|
};
|
|
export function ImageShadowOverlay({
|
|
upperClassName,
|
|
lowerClassName,
|
|
}: ImageShadowOverlayProps) {
|
|
return (
|
|
<>
|
|
<div
|
|
className={cn(
|
|
"pointer-events-none absolute inset-x-0 top-0 z-10 h-[30%] w-full bg-gradient-to-b from-black/20 to-transparent",
|
|
upperClassName,
|
|
)}
|
|
/>
|
|
<div
|
|
className={cn(
|
|
"pointer-events-none absolute inset-x-0 bottom-0 z-10 h-[10%] w-full bg-gradient-to-t from-black/20 to-transparent",
|
|
lowerClassName,
|
|
)}
|
|
/>
|
|
</>
|
|
);
|
|
}
|