From 913fee884f83ca8118b649c452cb26d2eb739822 Mon Sep 17 00:00:00 2001 From: Trevor Elkins Date: Tue, 25 Nov 2025 12:09:58 -0500 Subject: [PATCH] fix(preprod): fix positioning of app size tooltip --- .../main/buildDetailsMetricCards.tsx | 56 ++++++++----------- 1 file changed, 24 insertions(+), 32 deletions(-) diff --git a/static/app/views/preprod/buildDetails/main/buildDetailsMetricCards.tsx b/static/app/views/preprod/buildDetails/main/buildDetailsMetricCards.tsx index 13140929212351..5df12b877f0b10 100644 --- a/static/app/views/preprod/buildDetails/main/buildDetailsMetricCards.tsx +++ b/static/app/views/preprod/buildDetails/main/buildDetailsMetricCards.tsx @@ -122,33 +122,24 @@ export function BuildDetailsMetricCards(props: BuildDetailsMetricCardsProps) { return ( - {metricsCards.map(card => { - const valueContent = ( + {metricsCards.map(card => ( + , + tooltip: t('View insight details'), + ariaLabel: t('View insight details'), + onClick: onOpenInsightsSidebar, + } + : undefined + } + > - - {card.value} - - {card.percentageText ?? ''} - - ); - - return ( - , - tooltip: t('View insight details'), - ariaLabel: t('View insight details'), - onClick: onOpenInsightsSidebar, - } - : undefined - } - > {card.watchBreakdown ? ( } - position="left" + position="bottom" > - {valueContent} + {card.value} ) : ( - valueContent + {card.value} )} - - ); - })} + {card.percentageText ?? ''} + + + ))} ); }