From 8a88ab3c4b2358fefaa0d7f038aa124239a5028a 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) --- .../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 dffa7bc3b2..ea0354334a 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 (