Skip to content

Commit be24d67

Browse files
authored
fix(dashboards): dashboard widget height (#68966)
1 parent e69677c commit be24d67

File tree

1 file changed

+26
-20
lines changed
  • static/app/views/dashboards/widgetCard

1 file changed

+26
-20
lines changed

static/app/views/dashboards/widgetCard/index.tsx

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Component, Fragment} from 'react';
2-
import LazyLoad from 'react-lazyload';
2+
// import LazyLoad from 'react-lazyload';
33
import type {WithRouterProps} from 'react-router';
44
import type {useSortable} from '@dnd-kit/sortable';
55
import styled from '@emotion/styled';
@@ -226,7 +226,7 @@ class WidgetCard extends Component<Props, State> {
226226
renderErrorMessage,
227227
tableItemLimit,
228228
windowWidth,
229-
noLazyLoad,
229+
// noLazyLoad,
230230
showStoredAlert,
231231
noDashboardsMEPProvider,
232232
dashboardFilters,
@@ -349,7 +349,8 @@ class WidgetCard extends Component<Props, State> {
349349
<IconWarning color="gray500" size="lg" />
350350
</StyledErrorPanel>
351351
</Fragment>
352-
) : noLazyLoad ? (
352+
) : (
353+
// noLazyLoad ?
353354
<WidgetCardChartContainer
354355
location={location}
355356
api={api}
@@ -364,23 +365,28 @@ class WidgetCard extends Component<Props, State> {
364365
dashboardFilters={dashboardFilters}
365366
chartGroup={DASHBOARD_CHART_GROUP}
366367
/>
367-
) : (
368-
<LazyLoad once resize height={200}>
369-
<WidgetCardChartContainer
370-
location={location}
371-
api={api}
372-
organization={organization}
373-
selection={selection}
374-
widget={widget}
375-
isMobile={isMobile}
376-
renderErrorMessage={renderErrorMessage}
377-
tableItemLimit={tableItemLimit}
378-
windowWidth={windowWidth}
379-
onDataFetched={this.setData}
380-
dashboardFilters={dashboardFilters}
381-
chartGroup={DASHBOARD_CHART_GROUP}
382-
/>
383-
</LazyLoad>
368+
// )
369+
// : (
370+
// <LazyLoad
371+
// once
372+
// resize
373+
// height={200}
374+
// >
375+
// <WidgetCardChartContainer
376+
// location={location}
377+
// api={api}
378+
// organization={organization}
379+
// selection={selection}
380+
// widget={widget}
381+
// isMobile={isMobile}
382+
// renderErrorMessage={renderErrorMessage}
383+
// tableItemLimit={tableItemLimit}
384+
// windowWidth={windowWidth}
385+
// onDataFetched={this.setData}
386+
// dashboardFilters={dashboardFilters}
387+
// chartGroup={DASHBOARD_CHART_GROUP}
388+
// />
389+
// </LazyLoad>
384390
)}
385391
{this.renderToolbar()}
386392
</WidgetCardPanel>

0 commit comments

Comments
 (0)