Skip to content

Commit

Permalink
fix(dashboard): Fix scroll behaviour in DashboardBuilderSidepane (apa…
Browse files Browse the repository at this point in the history
…che#20969)

(cherry picked from commit 6f3a555)
  • Loading branch information
EugeneTorap authored and Fahrenheit35 committed Nov 11, 2022
1 parent 39f1b02 commit 8430c36
Showing 1 changed file with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ export interface BCPProps {

const SUPERSET_HEADER_HEIGHT = 59;
const SIDEPANE_ADJUST_OFFSET = 4;
const SIDEPANE_HEADER_HEIGHT = 64; // including margins
const SIDEPANE_FILTERBAR_HEIGHT = 56;
const TOP_PANEL_OFFSET = 210;

const BuilderComponentPaneTabs = styled(Tabs)`
line-height: inherit;
Expand All @@ -52,20 +51,10 @@ const BuilderComponentPaneTabs = styled(Tabs)`
const DashboardBuilderSidepane = styled.div<{
topOffset: number;
}>`
height: 100%;
height: calc(100% - ${TOP_PANEL_OFFSET}px);
position: fixed;
right: 0;
top: 0;
.ReactVirtualized__List {
padding-bottom: ${({ topOffset }) =>
`${
SIDEPANE_HEADER_HEIGHT +
SIDEPANE_FILTERBAR_HEIGHT +
SIDEPANE_ADJUST_OFFSET +
topOffset
}px`};
}
`;

const BuilderComponentPane: React.FC<BCPProps> = ({
Expand Down

0 comments on commit 8430c36

Please sign in to comment.