From 3f374afb44997a66413b6b97434fd32465d232b6 Mon Sep 17 00:00:00 2001
From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com>
Date: Mon, 26 Feb 2024 17:08:33 -0600
Subject: [PATCH] match outline colors to event type
---
web/src/components/player/LivePlayer.tsx | 2 +-
web/src/components/timeline/EventSegment.tsx | 4 ++++
web/src/views/events/DesktopEventView.tsx | 2 +-
web/tailwind.config.js | 5 +++++
4 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/web/src/components/player/LivePlayer.tsx b/web/src/components/player/LivePlayer.tsx
index 093410de0..0d9925f45 100644
--- a/web/src/components/player/LivePlayer.tsx
+++ b/web/src/components/player/LivePlayer.tsx
@@ -126,7 +126,7 @@ export default function LivePlayer({
diff --git a/web/src/components/timeline/EventSegment.tsx b/web/src/components/timeline/EventSegment.tsx
index 671b66aea..da9b3aa61 100644
--- a/web/src/components/timeline/EventSegment.tsx
+++ b/web/src/components/timeline/EventSegment.tsx
@@ -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");
diff --git a/web/src/views/events/DesktopEventView.tsx b/web/src/views/events/DesktopEventView.tsx
index 44e26a83d..08b5f5d78 100644
--- a/web/src/views/events/DesktopEventView.tsx
+++ b/web/src/views/events/DesktopEventView.tsx
@@ -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"
>