From dfde663b4904e4fca0137c314d1ba90bd4f0a187 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Thu, 13 Jun 2024 06:53:14 -0600 Subject: [PATCH] Show number of items instead of dot --- web/src/views/events/EventView.tsx | 87 +++++++++++++++++++++--------- 1 file changed, 62 insertions(+), 25 deletions(-) diff --git a/web/src/views/events/EventView.tsx b/web/src/views/events/EventView.tsx index b94640e25..e3b36d7af 100644 --- a/web/src/views/events/EventView.tsx +++ b/web/src/views/events/EventView.tsx @@ -243,41 +243,78 @@ export default function EventView({ } // don't allow the severity to be unselected > - -
- Alerts - {reviewCounts.alert > -1 ? ( - ` ∙ ${reviewCounts.alert}` - ) : ( - - )} -
+ {isDesktop ? ( + <> + +
+ Alerts + {reviewCounts.alert > -1 ? ( + ` ∙ ${reviewCounts.alert}` + ) : ( + + )} +
+ + ) : ( +
+ {reviewCounts.alert > -1 ? ( + reviewCounts.alert + ) : ( + + )} +
+ )}
- -
- Detections - {reviewCounts.detection > -1 ? ( - ` ∙ ${reviewCounts.detection}` - ) : ( - - )} -
+ {isDesktop ? ( + <> + +
+ Detections + {reviewCounts.detection > -1 ? ( + ` ∙ ${reviewCounts.detection}` + ) : ( + + )} +
+ + ) : ( +
+ {reviewCounts.detection > -1 ? ( + reviewCounts.detection + ) : ( + + )} +
+ )}