From 61be62740aae429ceb4bcbc44455c8b85d44933f Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Fri, 23 Feb 2024 15:13:33 +0000 Subject: [PATCH] Update bar opacity and add cursor pointer to bar tooltip --- CommonUI/src/Components/GanttChart/Bar/Index.tsx | 9 +++++++-- .../Pages/Telemetry/Services/View/Traces/View/Index.tsx | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CommonUI/src/Components/GanttChart/Bar/Index.tsx b/CommonUI/src/Components/GanttChart/Bar/Index.tsx index caa30ed1a66..3065d559460 100644 --- a/CommonUI/src/Components/GanttChart/Bar/Index.tsx +++ b/CommonUI/src/Components/GanttChart/Bar/Index.tsx @@ -66,12 +66,17 @@ const Bar: FunctionComponent = ( setIsHovered(false); }; - let barOpacity: number = 1; + let barOpacity: number = 0.9; if (props.areOtherBarsSelected && !isSelected) { barOpacity = 0.5; } + + if(isHovered){ + barOpacity = 1; + } + return ( // rectangle div with curved corners and text inside in tailwindcss
= ( /> )} {isHovered && props.bar.tooltip && ( -
+
{props.bar.tooltip}
)} diff --git a/Dashboard/src/Pages/Telemetry/Services/View/Traces/View/Index.tsx b/Dashboard/src/Pages/Telemetry/Services/View/Traces/View/Index.tsx index de1f402aa36..4b66d8f4401 100644 --- a/Dashboard/src/Pages/Telemetry/Services/View/Traces/View/Index.tsx +++ b/Dashboard/src/Pages/Telemetry/Services/View/Traces/View/Index.tsx @@ -154,7 +154,7 @@ const TraceView: FunctionComponent = ( } = data; return ( -
+
{span.name}