Skip to content

Commit

Permalink
feat: Disable interactive filters panel from screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
bprusinowski committed Dec 3, 2024
1 parent 5864301 commit dd3c3d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/components/chart-shared.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@ export const ChartControls = ({
chartConfig,
dashboardFilters,
});

return (
<Box
{...DISABLE_SCREENSHOT_ATTR}
sx={{
display: "grid",
gridTemplateAreas: `
Expand Down
2 changes: 0 additions & 2 deletions app/components/metadata-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ import { assert } from "@/utils/assert";
import { useEventEmitter } from "@/utils/eventEmitter";
import { makeDimensionValueSorters } from "@/utils/sorting-values";
import useEvent from "@/utils/use-event";
import { DISABLE_SCREENSHOT_ATTR } from "@/utils/use-screenshot";

import Flex from "./flex";
import { JoinByChip } from "./JoinByChip";
Expand Down Expand Up @@ -371,7 +370,6 @@ const ToggleButton = ({ onClick }: { onClick: () => void }) => {
color="primary"
size="small"
onClick={onClick}
{...DISABLE_SCREENSHOT_ATTR}
>
<Typography variant="body2">
<Trans id="controls.metadata-panel.metadata">Details</Trans>
Expand Down

0 comments on commit dd3c3d0

Please sign in to comment.