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,