From edbbf2e8ba06b938e3797223c025e1d0712241cc Mon Sep 17 00:00:00 2001 From: Geido <60598000+geido@users.noreply.github.com> Date: Wed, 26 Apr 2023 11:06:58 +0300 Subject: [PATCH] fix: Hide FiltersPanel in standalone mode 3 (#23811) (cherry picked from commit 8a88ab3c4b2358fefaa0d7f038aa124239a5028a) --- .../components/DashboardBuilder/DashboardBuilder.tsx | 5 +++-- .../dashboard/components/nativeFilters/FilterBar/index.tsx | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/superset-frontend/src/dashboard/components/DashboardBuilder/DashboardBuilder.tsx b/superset-frontend/src/dashboard/components/DashboardBuilder/DashboardBuilder.tsx index dffa7bc3b2f02..ea0354334aaa3 100644 --- a/superset-frontend/src/dashboard/components/DashboardBuilder/DashboardBuilder.tsx +++ b/superset-frontend/src/dashboard/components/DashboardBuilder/DashboardBuilder.tsx @@ -153,11 +153,12 @@ const StyledDiv = styled.div` `; // @z-index-above-dashboard-charts + 1 = 11 -const FiltersPanel = styled.div<{ width: number }>` +const FiltersPanel = styled.div<{ width: number; hidden: boolean }>` grid-column: 1; grid-row: 1 / span 2; z-index: 11; width: ${({ width }) => width}px; + ${({ hidden }) => hidden && `display: none;`} `; const StickyPanel = styled.div<{ width: number }>` @@ -654,6 +655,7 @@ const DashboardBuilder: FC = () => { return (