Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/smaller improvements #1823

Merged
merged 8 commits into from
Nov 13, 2024
3 changes: 3 additions & 0 deletions app/charts/shared/containers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ export const useStyles = makeStyles<{}, {}, "chartContainer">(() => ({
},
}));

const INTERACTIVE_TOGGLE_SPACING = 20;
noahonyejese marked this conversation as resolved.
Show resolved Hide resolved

export const ChartContainer = ({ children }: { children: ReactNode }) => {
const [state] = useConfiguratorState(hasChartConfigs);
const isFreeCanvas = isLayoutingFreeCanvas(state);
Expand Down Expand Up @@ -71,6 +73,7 @@ export const ChartSvg = ({ children }: { children: ReactNode }) => {
{interactiveFiltersConfig?.calculation.active && (
<foreignObject
width={width - margins.right}
y={INTERACTIVE_TOGGLE_SPACING}
height="24"
style={{ display: "flex", textAlign: "right" }}
>
Expand Down