From bdf31625a290356cae2fa8d085ab91c41eed08ad Mon Sep 17 00:00:00 2001 From: Sachin Date: Thu, 5 Oct 2023 00:09:30 +0530 Subject: [PATCH] fix: non responsiveness of Add your sign modal --- apps/marketing/src/components/(marketing)/widget.tsx | 2 +- packages/ui/primitives/dialog.tsx | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/marketing/src/components/(marketing)/widget.tsx b/apps/marketing/src/components/(marketing)/widget.tsx index 28a2e807a..32c0b285c 100644 --- a/apps/marketing/src/components/(marketing)/widget.tsx +++ b/apps/marketing/src/components/(marketing)/widget.tsx @@ -377,7 +377,7 @@ export const Widget = ({ className, children, ...props }: WidgetProps) => { - + Add your signature diff --git a/packages/ui/primitives/dialog.tsx b/packages/ui/primitives/dialog.tsx index 8a0d8b21e..a67e35b03 100644 --- a/packages/ui/primitives/dialog.tsx +++ b/packages/ui/primitives/dialog.tsx @@ -16,12 +16,13 @@ const DialogPortal = ({ children, position = 'start', ...props -}: DialogPrimitive.DialogPortalProps & { position?: 'start' | 'end' }) => ( +}: DialogPrimitive.DialogPortalProps & { position?: 'start' | 'end' | 'center' }) => (
{children} @@ -49,7 +50,9 @@ DialogOverlay.displayName = DialogPrimitive.Overlay.displayName; const DialogContent = React.forwardRef< React.ElementRef, - React.ComponentPropsWithoutRef & { position?: 'start' | 'end' } + React.ComponentPropsWithoutRef & { + position?: 'start' | 'end' | 'center'; + } >(({ className, children, position = 'start', ...props }, ref) => (