mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 00:55:47 -06:00
LogContext: Fix setting wrong height for ElasticSearch (#62330)
fix wrong height for elastic
This commit is contained in:
parent
5bdfbd93a5
commit
df2db3bb23
@ -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<LogRowContextGroupHeader
|
||||
getLogRowContextUi,
|
||||
runContextQuery,
|
||||
}) => {
|
||||
const [height, setHeight] = useState(50);
|
||||
const [height, setHeight] = useState(0);
|
||||
const datasourceUiRef = React.createRef<HTMLDivElement>();
|
||||
const {
|
||||
datasourceUi: dsUi,
|
||||
|
Loading…
Reference in New Issue
Block a user