From df2db3bb2305109e7ead8e011f335b941a893622 Mon Sep 17 00:00:00 2001 From: Sven Grossmann Date: Fri, 27 Jan 2023 15:41:16 +0100 Subject: [PATCH] LogContext: Fix setting wrong height for ElasticSearch (#62330) fix wrong height for elastic --- public/app/features/logs/components/LogRowContext.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/public/app/features/logs/components/LogRowContext.tsx b/public/app/features/logs/components/LogRowContext.tsx index 1ba24038979..9c3e76283fa 100644 --- a/public/app/features/logs/components/LogRowContext.tsx +++ b/public/app/features/logs/components/LogRowContext.tsx @@ -35,9 +35,7 @@ interface LogRowContextProps { } const getLogRowContextStyles = (theme: GrafanaTheme2, wrapLogMessage?: boolean, datasourceUiHeight?: number) => { - if (config.featureToggles.logsContextDatasourceUi) { - datasourceUiHeight = datasourceUiHeight ?? 55; - } else { + if (!config.featureToggles.logsContextDatasourceUi || !datasourceUiHeight) { datasourceUiHeight = 0; } /** @@ -178,7 +176,7 @@ const LogRowContextGroupHeader: React.FunctionComponent { - const [height, setHeight] = useState(50); + const [height, setHeight] = useState(0); const datasourceUiRef = React.createRef(); const { datasourceUi: dsUi,