Skip to content

Commit

Permalink
fix: blocks UI elements on right side (#30886)
Browse files Browse the repository at this point in the history
Co-authored-by: Evan Rusackas <[email protected]>
(cherry picked from commit df47994)
  • Loading branch information
samarsrivastav authored and sadpandajoe committed Nov 15, 2024
1 parent f704b0f commit 1410e52
Showing 1 changed file with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { useState, useMemo, useCallback, useEffect } from 'react';
import { ResizeCallback, ResizeStartCallback } from 're-resizable';
import cx from 'classnames';
import { useSelector } from 'react-redux';
import { css } from '@superset-ui/core';
import { css, useTheme } from '@superset-ui/core';
import { LayoutItem, RootState } from 'src/dashboard/types';
import AnchorLink from 'src/dashboard/components/AnchorLink';
import Chart from 'src/dashboard/containers/Chart';
Expand Down Expand Up @@ -70,15 +70,6 @@ interface ChartHolderProps {
isInView: boolean;
}

const fullSizeStyle = css`
&& {
position: fixed;
z-index: 3000;
left: 0;
top: 0;
}
`;

const ChartHolder: React.FC<ChartHolderProps> = ({
id,
parentId,
Expand All @@ -102,6 +93,16 @@ const ChartHolder: React.FC<ChartHolderProps> = ({
setFullSizeChartId,
isInView,
}) => {
const theme = useTheme();
const fullSizeStyle = css`
&& {
position: fixed;
z-index: 3000;
left: 0;
top: 0;
padding: ${theme.gridUnit * 2}px;
}
`;
const { chartId } = component.meta;
const isFullSize = fullSizeChartId === chartId;

Expand Down

0 comments on commit 1410e52

Please sign in to comment.