Skip to content
Snippets Groups Projects
Unverified Commit 946974fb authored by Romeo Van Snick's avatar Romeo Van Snick Committed by GitHub
Browse files

Limit the height of actions popover (#42946)

* Limit the height of actions popover

* Use Box instead of custom wrapper

* Add rem import
parent 9dbfae2e
No related branches found
No related tags found
No related merge requests found
......@@ -4,6 +4,7 @@ import { useDispatch } from "metabase/lib/redux";
import { setUIControls } from "metabase/query_builder/actions";
import { trackColumnExtractViaPlusModal } from "metabase/query_builder/analytics";
import { ExtractColumn } from "metabase/query_builder/components/expressions/ExtractColumn";
import { rem, Box } from "metabase/ui";
import type { LegacyDrill } from "metabase/visualizations/types";
import type { ClickActionPopoverProps } from "metabase/visualizations/types/click-actions";
import * as Lib from "metabase-lib";
......@@ -52,12 +53,14 @@ export const ExtractColumnAction: LegacyDrill = ({ question, clicked }) => {
}
return (
<ExtractColumn
query={query}
stageIndex={stageIndex}
onSubmit={handleSubmit}
onCancel={onClose}
/>
<Box h="65vh" mah={rem(550)}>
<ExtractColumn
query={query}
stageIndex={stageIndex}
onSubmit={handleSubmit}
onCancel={onClose}
/>
</Box>
);
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment