mirror of
https://github.com/grafana/grafana.git
synced 2025-02-11 16:15:42 -06:00
Dashboard: fix SoloPanelPage (#36060)
This commit is contained in:
parent
f5bd325354
commit
db81e55512
@ -84,24 +84,26 @@ export class SoloPanelPage extends Component<Props, State> {
|
||||
}
|
||||
|
||||
return (
|
||||
<AutoSizer className="panel-solo">
|
||||
{({ width, height }) => {
|
||||
if (width === 0) {
|
||||
return null;
|
||||
}
|
||||
return (
|
||||
<DashboardPanel
|
||||
width={width}
|
||||
height={height}
|
||||
dashboard={dashboard}
|
||||
panel={panel}
|
||||
isEditing={false}
|
||||
isViewing={false}
|
||||
isInView={true}
|
||||
/>
|
||||
);
|
||||
}}
|
||||
</AutoSizer>
|
||||
<div className="panel-solo">
|
||||
<AutoSizer>
|
||||
{({ width, height }) => {
|
||||
if (width === 0) {
|
||||
return null;
|
||||
}
|
||||
return (
|
||||
<DashboardPanel
|
||||
width={width}
|
||||
height={height}
|
||||
dashboard={dashboard}
|
||||
panel={panel}
|
||||
isEditing={false}
|
||||
isViewing={false}
|
||||
isInView={true}
|
||||
/>
|
||||
);
|
||||
}}
|
||||
</AutoSizer>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user