From 08078753b7e043c0c636c4d6c53ba5d0f287e7b7 Mon Sep 17 00:00:00 2001 From: Lyndsi Kay Williams <55605634+lyndsiWilliams@users.noreply.github.com> Date: Tue, 17 Jan 2023 12:08:00 -0600 Subject: [PATCH] fix: Report screenshot cut off on left and right sides (#22614) --- .../DashboardBuilder/DashboardBuilder.tsx | 24 ++++++++++--------- superset/utils/screenshots.py | 2 +- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/superset-frontend/src/dashboard/components/DashboardBuilder/DashboardBuilder.tsx b/superset-frontend/src/dashboard/components/DashboardBuilder/DashboardBuilder.tsx index acea440f2..c95b1cce8 100644 --- a/superset-frontend/src/dashboard/components/DashboardBuilder/DashboardBuilder.tsx +++ b/superset-frontend/src/dashboard/components/DashboardBuilder/DashboardBuilder.tsx @@ -455,17 +455,19 @@ const DashboardBuilder: FC = () => { > - + {!isReport && ( + + )} diff --git a/superset/utils/screenshots.py b/superset/utils/screenshots.py index c81ede6dc..741bc9ea5 100644 --- a/superset/utils/screenshots.py +++ b/superset/utils/screenshots.py @@ -212,7 +212,7 @@ class ChartScreenshot(BaseScreenshot): class DashboardScreenshot(BaseScreenshot): thumbnail_type: str = "dashboard" - element: str = "grid-container" + element: str = "standalone" def __init__( self,