From 8e4748ad1d7397c1626edabeaa1a5ceaf0bfc73c Mon Sep 17 00:00:00 2001 From: AnushaErrabelli Date: Mon, 30 Jan 2023 12:52:29 -0500 Subject: [PATCH] Revert "fix: Report screenshot cut off on left and right sides (#22614)" This reverts commit 08078753b7e043c0c636c4d6c53ba5d0f287e7b7. --- .../DashboardBuilder/DashboardBuilder.tsx | 24 +++++++++---------- superset/utils/screenshots.py | 2 +- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/superset-frontend/src/dashboard/components/DashboardBuilder/DashboardBuilder.tsx b/superset-frontend/src/dashboard/components/DashboardBuilder/DashboardBuilder.tsx index c95b1cce832ef..acea440f2f3f4 100644 --- a/superset-frontend/src/dashboard/components/DashboardBuilder/DashboardBuilder.tsx +++ b/superset-frontend/src/dashboard/components/DashboardBuilder/DashboardBuilder.tsx @@ -455,19 +455,17 @@ const DashboardBuilder: FC = () => { > - {!isReport && ( - - )} + diff --git a/superset/utils/screenshots.py b/superset/utils/screenshots.py index 741bc9ea5fa93..c81ede6dc1956 100644 --- a/superset/utils/screenshots.py +++ b/superset/utils/screenshots.py @@ -212,7 +212,7 @@ def __init__( class DashboardScreenshot(BaseScreenshot): thumbnail_type: str = "dashboard" - element: str = "standalone" + element: str = "grid-container" def __init__( self,