fix: Report screenshot cut off on left and right sides (#22614)

This commit is contained in:
Lyndsi Kay Williams 2023-01-17 12:08:00 -06:00 committed by GitHub
parent 0a2fc9cdde
commit 08078753b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 12 deletions

View File

@ -455,17 +455,19 @@ const DashboardBuilder: FC<DashboardBuilderProps> = () => {
>
<StickyPanel ref={containerRef} width={filterBarWidth}>
<ErrorBoundary>
<FilterBar
focusedFilterId={focusedFilterId}
orientation={FilterBarOrientation.VERTICAL}
verticalConfig={{
filtersOpen: dashboardFiltersOpen,
toggleFiltersBar: toggleDashboardFiltersOpen,
width: filterBarWidth,
height: filterBarHeight,
offset: filterBarOffset,
}}
/>
{!isReport && (
<FilterBar
focusedFilterId={focusedFilterId}
orientation={FilterBarOrientation.VERTICAL}
verticalConfig={{
filtersOpen: dashboardFiltersOpen,
toggleFiltersBar: toggleDashboardFiltersOpen,
width: filterBarWidth,
height: filterBarHeight,
offset: filterBarOffset,
}}
/>
)}
</ErrorBoundary>
</StickyPanel>
</FiltersPanel>

View File

@ -212,7 +212,7 @@ class ChartScreenshot(BaseScreenshot):
class DashboardScreenshot(BaseScreenshot):
thumbnail_type: str = "dashboard"
element: str = "grid-container"
element: str = "standalone"
def __init__(
self,