Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

open dialog modal on mobile at the bottom

Marc Seitz9abd7a70bbc4
diff --git a/components/documents/add-document-modal.tsx b/components/documents/add-document-modal.tsx
index 78b57342..1c0701d9 100644
--- a/components/documents/add-document-modal.tsx
+++ b/components/documents/add-document-modal.tsx
@@ -127,7 +127,7 @@ export function AddDocumentModal({children}: {children: React.ReactNode}) {
return (
<Dialog>
<DialogTrigger>{children}</DialogTrigger>
- <DialogContent className="text-white bg-black">
+ <DialogContent className="text-white bg-black ring-1 ring-white/10">
<DialogHeader>
<DialogTitle>Share a document</DialogTitle>
<DialogDescription>
diff --git a/components/ui/dialog.tsx b/components/ui/dialog.tsx
index 81b6ccfa..15d53fef 100644
--- a/components/ui/dialog.tsx
+++ b/components/ui/dialog.tsx
@@ -16,7 +16,7 @@ const DialogPortal = ({
...props
}: DialogPrimitive.DialogPortalProps) => (
<DialogPrimitive.Portal className={cn(className)} {...props}>
- <div className="fixed inset-0 z-50 flex items-start justify-center sm:items-center">
+ <div className="fixed inset-0 z-50 flex items-end justify-center sm:items-center">
{children}
</div>
</DialogPrimitive.Portal>
@@ -47,7 +47,7 @@ const DialogContent = React.forwardRef<
<DialogPrimitive.Content
ref={ref}
className={cn(
- "fixed z-50 grid w-full md:w-1/2 gap-4 rounded-b-lg border border-gray-800 bg-background p-6 shadow-lg animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10 sm:max-w-xl sm:rounded-lg sm:zoom-in-90 data-[state=open]:sm:slide-in-from-bottom-0",
+ "fixed z-50 grid w-full md:w-1/2 gap-4 rounded-t-lg border border-gray-800 bg-background p-6 shadow-lg animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10 sm:max-w-xl sm:rounded-lg sm:zoom-in-90 data-[state=open]:sm:slide-in-from-bottom-0",
className
)}
{...props}