Skip to content

Commit

Permalink
fix: Side menu of the dashboard component will scroll out of dashboard (
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-s-molina authored Jul 26, 2021
1 parent 16a26ba commit f6115a7
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,11 @@ const StyledDiv = styled.div`
flex: 1;
`;

// @z-index-above-dashboard-charts + 1 = 11
const FiltersPanel = styled.div`
grid-column: 1;
grid-row: 1 / span 2;
z-index: 2;
z-index: 11;
`;

const StickyPanel = styled.div<{ width: number }>`
Expand All @@ -82,12 +83,13 @@ const StickyPanel = styled.div<{ width: number }>`
flex: 0 0 ${({ width }) => width}px;
`;

// @z-index-above-dashboard-charts + 1 = 11
const StyledHeader = styled.div`
grid-column: 2;
grid-row: 1;
position: sticky;
top: 0px;
z-index: 2;
z-index: 11;
`;

const StyledContent = styled.div<{
Expand Down

0 comments on commit f6115a7

Please sign in to comment.