Fix: modal content hidden (#6508)

This commit is contained in:
Nafees Nazik authored and GitHub committed 2023-01-16 18:08:34 +01:00
1 parent 207e120d66
commit 8243ac3c00
3 files changed
+2 -5

No files matched your search

@@ -138,7 +138,6 @@ const CreateEventTypeDialog = () => {
]}>
<DialogContent
type="creation"
className="overflow-y-auto"
title={teamId ? t("add_new_team_event_type") : t("add_new_event_type")}
description={t("new_event_type_to_book_description")}>
<Form
@@ -180,7 +180,7 @@ const DateOverrideInputDialog = ({
return (
<Dialog open={open} onOpenChange={setOpen}>
<DialogTrigger asChild>{Trigger}</DialogTrigger>
<DialogContent allowScroll={true} size="md">
<DialogContent size="md">
<DateOverrideForm
excludedDates={excludedDates}
{...passThroughProps}
+1 -3
View File
@@ -68,7 +68,6 @@ type DialogContentProps = React.ComponentProps<typeof DialogPrimitive["Content"]
closeText?: string;
actionDisabled?: boolean;
Icon?: SVGComponent;
allowScroll?: boolean;
};
export const DialogContent = React.forwardRef<HTMLDivElement, DialogContentProps>(
@@ -88,8 +87,7 @@ export const DialogContent = React.forwardRef<HTMLDivElement, DialogContentProps
: props.size == "md"
? "p-8 sm:max-w-[48rem]"
: "p-8 sm:max-w-[35rem]",
"max-h-[560px] overscroll-auto md:h-auto md:max-h-[inherit]",
props.allowScroll ? "overflow-y-auto" : "overflow-visible",
"max-h-[95vh] overflow-auto",
`${props.className || ""}`
)}
ref={forwardedRef}>