From 7694ea28e5f9af2965b8bcdfe211f09e12b3eb87 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Thu, 20 Apr 2023 16:14:39 +0100 Subject: [PATCH] [v9.5.x] Stats Inspector: Prevent long stats from being hidden (#66980) Stats Inspector: Prevent long stats from being hidden (#66866) * Stats Inspector: Prevent stats from being hidden * Inspect stats: inline container styles (cherry picked from commit c11baa3ead24e1df529529eef4e39e53d6e718e0) Co-authored-by: Matias Chomicki --- 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 541a3bd0da5..3abd38fe502 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'; @@ -15,7 +16,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; @@ -61,9 +61,14 @@ export const InspectStatsTab = ({ data, timeZone }: InspectStatsTabProps) => { const dataStatsTableName = t('dashboard.inspect-stats.data-title', 'Data source stats'); return ( -
+
); }; + +const containerStyles = css` + height: 100%; + overflow-y: scroll; +`;