Skip to content

Commit

Permalink
Fix scroll overflow for ConfirmDialog (#26681)
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrejeambrun committed Sep 26, 2022
1 parent 37c0cb6 commit a836899
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions airflow/www/static/js/components/ConfirmDialog.tsx
Expand Up @@ -47,6 +47,7 @@ const ConfirmDialog = ({
}: Props) => {
const initialFocusRef = useRef<HTMLButtonElement>(null);
const containerRef = useContainerRef();

return (
<AlertDialog
isOpen={isOpen}
Expand All @@ -58,12 +59,12 @@ const ConfirmDialog = ({
blockScrollOnMount={false}
>
<AlertDialogOverlay>
<AlertDialogContent>
<AlertDialogContent maxHeight="90vh">
<AlertDialogHeader fontSize="4xl" fontWeight="bold">
{title}
</AlertDialogHeader>

<AlertDialogBody>
<AlertDialogBody overflowY="auto">
<Text mb={2}>{description}</Text>
{Array.isArray(body) && body.map((ti) => (<Code key={ti} fontSize="lg">{ti}</Code>))}
</AlertDialogBody>
Expand Down

0 comments on commit a836899

Please sign in to comment.