mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-08 20:25:26 +03:00
match outline colors to event type
This commit is contained in:
parent
e3ffdcc6f0
commit
3f374afb44
@ -126,7 +126,7 @@ export default function LivePlayer({
|
||||
<div
|
||||
className={`relative flex justify-center w-full outline ${
|
||||
activeTracking
|
||||
? "outline-destructive outline-1 rounded-2xl shadow-[0_0_6px_1px] shadow-destructive"
|
||||
? "outline-1 rounded-2xl shadow-[0_0_6px_1px]"
|
||||
: "outline-0"
|
||||
} transition-all duration-500 ${className}`}
|
||||
>
|
||||
|
||||
@ -253,6 +253,10 @@ export function EventSegment({
|
||||
);
|
||||
if (element instanceof HTMLElement) {
|
||||
debounceScrollIntoView(element);
|
||||
element.classList.add(
|
||||
`outline-severity_${severityType}`,
|
||||
`shadow-severity_${severityType}`
|
||||
);
|
||||
element.classList.add("outline-4", "shadow-[0_0_6px_1px]");
|
||||
element.classList.remove("outline-0", "shadow-none");
|
||||
|
||||
|
||||
@ -304,7 +304,7 @@ export default function DesktopEventView({
|
||||
data-segment-start={
|
||||
alignDateToTimeline(value.start_time) - segmentDuration
|
||||
}
|
||||
className="outline outline-destructive outline-offset-1 outline-0 rounded-lg shadow-none shadow-destructive transition-all duration-500"
|
||||
className="outline outline-offset-1 outline-0 rounded-lg shadow-none transition-all duration-500"
|
||||
>
|
||||
<div className="aspect-video rounded-lg overflow-hidden">
|
||||
<PreviewThumbnailPlayer
|
||||
|
||||
@ -7,6 +7,11 @@ module.exports = {
|
||||
"./app/**/*.{ts,tsx}",
|
||||
"./src/**/*.{ts,tsx}",
|
||||
],
|
||||
safelist: [
|
||||
{
|
||||
pattern: /outline-severity_(alert|detection|motion)/,
|
||||
},
|
||||
],
|
||||
theme: {
|
||||
container: {
|
||||
center: true,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user