Fix contract end date calendar cut off in dialog

The Add Person dialog wrapped its form content in a plain <div>
instead of DialogContent. When the form is tall enough, the
dialog extends beyond the viewport with no way to scroll,
cutting off the contract end date field.

Replace the raw <div> with DialogContent which provides
overflow-y-auto and a maxHeight constraint, matching the
pattern used by all other dialogs in the codebase.

Signed-off-by: Cursor Agent <cursoragent@cursor.com>

Co-authored-by: Émile Ré <nemile.re@gmail.com>
This commit is contained in:
Cursor Agent
2026-05-01 10:50:55 +00:00
parent 7648edd770
commit 17b75f2017

View File

@@ -13,7 +13,7 @@
// PERFORMANCE OF THIS SOFTWARE. // PERFORMANCE OF THIS SOFTWARE.
import { useTranslate } from "@probo/i18n"; import { useTranslate } from "@probo/i18n";
import { Dialog, useDialogRef } from "@probo/ui"; import { Dialog, DialogContent, useDialogRef } from "@probo/ui";
import { type PropsWithChildren } from "react"; import { type PropsWithChildren } from "react";
import type { DataID } from "relay-runtime"; import type { DataID } from "relay-runtime";
@@ -33,9 +33,9 @@ export function AddPersonDialog(props: PropsWithChildren<{
className="max-w-xl" className="max-w-xl"
ref={dialogRef} ref={dialogRef}
> >
<div className="p-4"> <DialogContent padded>
<PersonForm connectionId={connectionId} onSubmit={() => dialogRef.current?.close()} /> <PersonForm connectionId={connectionId} onSubmit={() => dialogRef.current?.close()} />
</div> </DialogContent>
</Dialog> </Dialog>
); );
} }