Skip to content

Commit 131d8be

Browse files
pierrejeambrunjedcunningham
authored andcommitted
Fix scroll overflow for ConfirmDialog (#26681)
(cherry picked from commit a836899)
1 parent 15dd9a8 commit 131d8be

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

airflow/www/static/js/dag/details/ConfirmDialog.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ const ConfirmDialog = ({
4747
}: Props) => {
4848
const initialFocusRef = useRef<HTMLButtonElement>(null);
4949
const containerRef = useContainerRef();
50+
5051
return (
5152
<AlertDialog
5253
isOpen={isOpen}
@@ -58,12 +59,12 @@ const ConfirmDialog = ({
5859
blockScrollOnMount={false}
5960
>
6061
<AlertDialogOverlay>
61-
<AlertDialogContent>
62+
<AlertDialogContent maxHeight="90vh">
6263
<AlertDialogHeader fontSize="4xl" fontWeight="bold">
6364
{title}
6465
</AlertDialogHeader>
6566

66-
<AlertDialogBody>
67+
<AlertDialogBody overflowY="auto">
6768
<Text mb={2}>{description}</Text>
6869
{Array.isArray(body) && body.map((ti) => (<Code key={ti} fontSize="lg">{ti}</Code>))}
6970
</AlertDialogBody>

0 commit comments

Comments
 (0)