Skip to content

Commit

Permalink
fix(viz): Header scrolling for Time Table in dashboard (#20874)
Browse files Browse the repository at this point in the history
* TimeTable:

- Increase the z-index so the sparkline doesn't overlap when scrolling in the dashboard

* Time TAble:

- Remove testing label
  • Loading branch information
Antonio-RiveroMartnez committed Jul 27, 2022
1 parent 77db065 commit 99085d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion superset-frontend/src/visualizations/TimeTable/TimeTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,13 @@ const defaultProps = {
url: '',
};

// @z-index-above-dashboard-charts + 1 = 11
const TimeTableStyles = styled.div`
height: ${props => props.height}px;
overflow: auto;
th {
z-index: 1; // to cover sparkline
z-index: 11 !important; // to cover sparkline
}
`;

Expand Down

0 comments on commit 99085d5

Please sign in to comment.