Skip to content

Commit 7d19ded

Browse files
author
Mike Bridge
committed
fix(dashboard): vertical filter bar action buttons should not overlay scrollbar/divider
The action buttons at the bottom of the vertical filter bar used position: fixed, which caused the gradient background to layer on top of the filter bar's right-edge divider and scrollbar, making them appear cut off near the bottom of the bar. Switch to position: sticky so the buttons live in the scroll container's flow rather than overlaying it. The explicit width is no longer needed because sticky elements take their parent's content width naturally.
1 parent 3a3a653 commit 7d19ded

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • superset-frontend/src/dashboard/components/nativeFilters/FilterBar/ActionButtons

‎superset-frontend/src/dashboard/components/nativeFilters/FilterBar/ActionButtons/index.tsx‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,8 @@ const ButtonsContainer = styled.div<{ isVertical: boolean; width: number }>`
5252
? css`
5353
flex-direction: column;
5454
align-items: center;
55-
position: fixed;
55+
position: sticky;
5656
z-index: 100;
57-
width: ${width - 1}px;
5857
bottom: 0;
5958
padding: ${theme.sizeUnit * 4}px;
6059
padding-top: ${theme.sizeUnit * 6}px;

0 commit comments

Comments
 (0)