Explore: Remove nested auto sizer and pass width from main Explore component (#35919)

This commit is contained in:
Torkel Ödegaard
2021-06-18 14:21:54 +02:00
committed by GitHub
parent 7ff26bdfae
commit 83f62c1912
4 changed files with 44 additions and 43 deletions

View File

@@ -45,6 +45,7 @@ const SETTINGS_KEYS = {
};
interface Props {
width: number;
logRows: LogRowModel[];
logsMeta?: LogsMetaItem[];
logsSeries?: DataFrame[];
@@ -233,6 +234,7 @@ export class UnthemedLogs extends PureComponent<Props, State> {
render() {
const {
width,
logRows,
logsMeta,
logsSeries,
@@ -284,6 +286,7 @@ export class UnthemedLogs extends PureComponent<Props, State> {
<ExploreGraphNGPanel
data={logsSeries}
height={150}
width={width}
tooltipDisplayMode={TooltipDisplayMode.Multi}
absoluteRange={visibleRange || absoluteRange}
timeZone={timeZone}