From c11baa3ead24e1df529529eef4e39e53d6e718e0 Mon Sep 17 00:00:00 2001 From: Matias Chomicki Date: Thu, 20 Apr 2023 17:06:47 +0200 Subject: [PATCH] Stats Inspector: Prevent long stats from being hidden (#66866) * Stats Inspector: Prevent stats from being hidden * Inspect stats: inline container styles --- public/app/features/inspector/InspectStatsTab.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/public/app/features/inspector/InspectStatsTab.tsx b/public/app/features/inspector/InspectStatsTab.tsx index 3977cffcb2b..16886e34262 100644 --- a/public/app/features/inspector/InspectStatsTab.tsx +++ b/public/app/features/inspector/InspectStatsTab.tsx @@ -1,3 +1,4 @@ +import { css } from '@emotion/css'; import React from 'react'; import { PanelData, QueryResultMetaStat, TimeZone } from '@grafana/data'; @@ -17,7 +18,6 @@ export const InspectStatsTab = ({ data, timeZone }: InspectStatsTabProps) => { if (!data.request) { return null; } - let stats: QueryResultMetaStat[] = []; const requestTime = data.request.endTime ? data.request.endTime - data.request.startTime : -1; @@ -64,7 +64,7 @@ export const InspectStatsTab = ({ data, timeZone }: InspectStatsTabProps) => { const traceIdsStatsTableName = t('dashboard.inspect-stats.data-traceids', 'Trace IDs'); return ( -
+
{config.featureToggles.showTraceId && ( @@ -73,3 +73,8 @@ export const InspectStatsTab = ({ data, timeZone }: InspectStatsTabProps) => {
); }; + +const containerStyles = css` + height: 100%; + overflow-y: scroll; +`;