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 scroll overflow for ConfirmDialog #26681

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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