You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by di...@apache.org on 2022/08/22 13:18:01 UTC

[superset] 12/36: fix(dashboard): Dashboard header overflowing in edit mode (#21100)

This is an automated email from the ASF dual-hosted git repository.

diegopucci pushed a commit to branch chore/drill-to-detail-modal-tests
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 3e6ebf99ba959fa7f6aa47c2c5264e32f49d03eb
Author: Kamil Gabryjelski <ka...@gmail.com>
AuthorDate: Tue Aug 16 19:08:29 2022 +0200

    fix(dashboard): Dashboard header overflowing in edit mode (#21100)
---
 .../src/dashboard/components/DashboardBuilder/DashboardBuilder.tsx       | 1 +
 superset-frontend/src/dashboard/components/Header/index.jsx              | 1 +
 2 files changed, 2 insertions(+)

diff --git a/superset-frontend/src/dashboard/components/DashboardBuilder/DashboardBuilder.tsx b/superset-frontend/src/dashboard/components/DashboardBuilder/DashboardBuilder.tsx
index 7ff6432d79..fb062490b3 100644
--- a/superset-frontend/src/dashboard/components/DashboardBuilder/DashboardBuilder.tsx
+++ b/superset-frontend/src/dashboard/components/DashboardBuilder/DashboardBuilder.tsx
@@ -149,6 +149,7 @@ const StyledHeader = styled.div`
   position: sticky;
   top: 0;
   z-index: 100;
+  max-width: 100vw;
 `;
 
 const StyledContent = styled.div<{
diff --git a/superset-frontend/src/dashboard/components/Header/index.jsx b/superset-frontend/src/dashboard/components/Header/index.jsx
index 46ca4fc703..19b7c21ce2 100644
--- a/superset-frontend/src/dashboard/components/Header/index.jsx
+++ b/superset-frontend/src/dashboard/components/Header/index.jsx
@@ -132,6 +132,7 @@ const actionButtonsStyle = theme => css`
   }
 
   .undoRedo {
+    display: flex;
     margin-right: ${theme.gridUnit * 2}px;
   }
 `;