Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix option selection text overflow
Ashish Viradiya4e2ad2736696
diff --git a/components/documents/add-document-to-dataroom-modal.tsx b/components/documents/add-document-to-dataroom-modal.tsxindex aecb68e0..4a842eb3 100644--- a/components/documents/add-document-to-dataroom-modal.tsx+++ b/components/documents/add-document-to-dataroom-modal.tsx@@ -87,31 +87,32 @@ export function AddToDataroomModal({};return (- <Dialog open={open} onOpenChange={setOpen}>- <DialogContent className="sm:max-w-[425px] max-w-[90vw]">- <DialogHeader className="text-start">- <DialogTitle className="break-words max-w-full">- <span className="font-bold break-words line-clamp-2">- {documentName}- </span>- </DialogTitle>- <DialogDescription>- Add your document to a dataroom.- </DialogDescription>- </DialogHeader>+ <Dialog open={open} onOpenChange={setOpen}>+ <DialogContent className="max-w-[90vw] sm:max-w-[425px]">+ <DialogHeader className="text-start">+ <DialogTitle>+ <span className="font-bold">{documentName}</span>+ </DialogTitle>+ <DialogDescription>+ Add your document to a dataroom.+ </DialogDescription>+ </DialogHeader><Select onValueChange={(value) => setSelectedDataroom(value)}>- <SelectTrigger className="min-w-fit">+ <SelectTrigger className="w-[380px] max-w-full [&>span]:max-w-full [&>span]:overflow-hidden [&>span]:truncate [&>span]:text-ellipsis [&>span]:whitespace-nowrap"><SelectValue placeholder="Select a dataroom" /></SelectTrigger>- <SelectContent>+ <SelectContent className="w-[380px] max-w-[90vw]">{datarooms?.map((dataroom) => (<SelectItemkey={dataroom.id}value={dataroom.id}disabled={dataroom.id === dataroomId}+ className="break-words">- {dataroom.name}- {dataroom.id === dataroomId ? " (current)" : ""}+ <span className="line-clamp-1 break-words">+ {dataroom.name}+ {dataroom.id === dataroomId ? " (current)" : ""}+ </span></SelectItem>))}</SelectContent>@@ -129,15 +130,15 @@ export function AddToDataroomModal({{!selectedDataroom ? ("Select a dataroom") : (- <>- Add to{" "}- <span className="font-medium">+ <span className="flex w-full max-w-[350px] items-center justify-center truncate">+ Add to+ <span className="ml-1 line-clamp-1 truncate font-medium">{datarooms?.filter((d) => d.id === selectedDataroom)[0].name}</span>- </>+ </span>)}</Button></DialogFooter>diff --git a/components/documents/add-folder-to-dataroom-modal.tsx b/components/documents/add-folder-to-dataroom-modal.tsxindex 2c690936..e293fd47 100644--- a/components/documents/add-folder-to-dataroom-modal.tsx+++ b/components/documents/add-folder-to-dataroom-modal.tsx@@ -114,18 +114,21 @@ export function AddFolderToDataroomModal({<DialogDescription>Add your folder to a dataroom.</DialogDescription></DialogHeader><Select onValueChange={(value) => setSelectedDataroom(value)}>- <SelectTrigger className="min-w-fit">+ <SelectTrigger className="w-[380px] max-w-full [&>span]:truncate [&>span]:max-w-full [&>span]:overflow-hidden [&>span]:text-ellipsis [&>span]:whitespace-nowrap"><SelectValue placeholder="Select a dataroom" /></SelectTrigger>- <SelectContent>+ <SelectContent className="w-[380px] max-w-[90vw]">{datarooms?.map((dataroom) => (<SelectItemkey={dataroom.id}value={dataroom.id}disabled={dataroom.id === dataroomId}+ className="break-words">- {dataroom.name}- {dataroom.id === dataroomId ? " (current)" : ""}+ <span className="break-words line-clamp-1">+ {dataroom.name}+ {dataroom.id === dataroomId ? " (current)" : ""}+ </span></SelectItem>))}</SelectContent>@@ -143,15 +146,15 @@ export function AddFolderToDataroomModal({{!selectedDataroom ? ("Select a dataroom") : (- <>- Add to{" "}- <span className="font-medium">+ <span className="flex items-center justify-center w-full max-w-[350px] truncate">+ Add to+ <span className="font-medium truncate line-clamp-1 ml-1">{datarooms?.filter((d) => d.id === selectedDataroom)[0].name}</span>- </>+ </span>)}</Button></DialogFooter>