From f604dc76a5f5fb2e15e8787670b98df0be01ea40 Mon Sep 17 00:00:00 2001 From: Kyrylo Shmidt Date: Wed, 1 Nov 2023 12:05:36 +0100 Subject: [PATCH] Fix usage flow layout --- .../Insights/TopUsageInsight/index.tsx | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/components/Insights/TopUsageInsight/index.tsx b/src/components/Insights/TopUsageInsight/index.tsx index 31713d4e3..2886fbce1 100644 --- a/src/components/Insights/TopUsageInsight/index.tsx +++ b/src/components/Insights/TopUsageInsight/index.tsx @@ -54,14 +54,15 @@ export const TopUsageInsight = (props: TopUsageInsightProps) => { {flow.firstService.span} - - {flow.intermediateSpan && ( - <> -> {flow.intermediateSpan} - )} - - {flow.lastService ? ( + {flow.intermediateSpan && ( + -> {flow.intermediateSpan} + )} + {flow.lastService && ( - {flow.lastService.service} + + {" "} + -> {flow.lastService.service} + handleServiceLinkClick( @@ -72,10 +73,10 @@ export const TopUsageInsight = (props: TopUsageInsightProps) => { {flow.lastService.span} - ) : null} - - {flow.lastServiceSpan && <> -> {flow.lastServiceSpan}} - + )} + {flow.lastServiceSpan && ( + -> {flow.lastServiceSpan} + )} {config.isJaegerEnabled && traceId && (