+ {disabled ? disabledMessage : 'Drag & drop your document here.'}
+
From 3f89f8725bc407248275e81a363ace551111b486 Mon Sep 17 00:00:00 2001
From: David Nguyen
Date: Thu, 28 Dec 2023 20:08:19 +1100
Subject: [PATCH 3/5] fix: resolve conflicting z-index values (#788)
## Description
Currently there are various z-index values that are causing:
- Toasts to be placed behind dialog blur background
- Menu being cropped off by header
## Changes Made
- Revert `z-[1000]` back to `z-50` for the header (not exactly sure why
it was bumped)
- Refactor z-indexes over 9000 to start from 1000
- Ensure z-index of toast is higher than dialog
---
apps/web/src/components/(dashboard)/layout/header.tsx | 2 +-
packages/ui/primitives/dialog.tsx | 2 +-
packages/ui/primitives/select.tsx | 2 +-
packages/ui/primitives/toast.tsx | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/apps/web/src/components/(dashboard)/layout/header.tsx b/apps/web/src/components/(dashboard)/layout/header.tsx
index cf8873a1a..bdae6c511 100644
--- a/apps/web/src/components/(dashboard)/layout/header.tsx
+++ b/apps/web/src/components/(dashboard)/layout/header.tsx
@@ -33,7 +33,7 @@ export const Header = ({ className, user, ...props }: HeaderProps) => {
return (
5 && 'border-b-border',
className,
)}
diff --git a/packages/ui/primitives/dialog.tsx b/packages/ui/primitives/dialog.tsx
index 8e5ed20e5..47982ab09 100644
--- a/packages/ui/primitives/dialog.tsx
+++ b/packages/ui/primitives/dialog.tsx
@@ -20,7 +20,7 @@ const DialogPortal = ({
}: DialogPrimitive.DialogPortalProps & { position?: 'start' | 'end' | 'center' }) => (
Date: Thu, 28 Dec 2023 15:06:46 +0530
Subject: [PATCH 4/5] fix: fixed the title box overlapping issue (#785)
The issue is fixed. Now the box is no more overlapping
---
packages/ui/primitives/document-flow/add-title.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/ui/primitives/document-flow/add-title.tsx b/packages/ui/primitives/document-flow/add-title.tsx
index 8c2a9dc7a..afce0d9e0 100644
--- a/packages/ui/primitives/document-flow/add-title.tsx
+++ b/packages/ui/primitives/document-flow/add-title.tsx
@@ -64,7 +64,7 @@ export const AddTitleFormPartial = ({
From 341481d6dba8f91782e8e6787b7ddf3521064e19 Mon Sep 17 00:00:00 2001
From: Mohith Gadireddy <88539464+Mohith234@users.noreply.github.com>
Date: Fri, 29 Dec 2023 15:48:19 +0530
Subject: [PATCH 5/5] fix: trimmed long file names for better UX (#760)
Fixes #755
### Notes for Reviewers
- The max length of the title is set to be `16`
- If the length of the title is <16 it returns the original one.
- Or else the title will be the first 8 characters (start) and last 8
characters (end)
- The truncated file name will look like `start...end`
### Screenshot for reference

---------
Co-authored-by: Catalin Pit <25515812+catalinpit@users.noreply.github.com>
---
.../src/app/(signing)/sign/[token]/complete/page.tsx | 6 +++++-
apps/web/src/app/(signing)/sign/[token]/page.tsx | 6 +++++-
.../web/src/app/(signing)/sign/[token]/sign-dialog.tsx | 8 +++++---
apps/web/src/helpers/truncate-title.ts | 10 ++++++++++
4 files changed, 25 insertions(+), 5 deletions(-)
create mode 100644 apps/web/src/helpers/truncate-title.ts
diff --git a/apps/web/src/app/(signing)/sign/[token]/complete/page.tsx b/apps/web/src/app/(signing)/sign/[token]/complete/page.tsx
index 54757667a..4b1aed265 100644
--- a/apps/web/src/app/(signing)/sign/[token]/complete/page.tsx
+++ b/apps/web/src/app/(signing)/sign/[token]/complete/page.tsx
@@ -15,6 +15,8 @@ import { DocumentDownloadButton } from '@documenso/ui/components/document/docume
import { DocumentShareButton } from '@documenso/ui/components/document/document-share-button';
import { SigningCard3D } from '@documenso/ui/components/signing-card';
+import { truncateTitle } from '~/helpers/truncate-title';
+
export type CompletedSigningPageProps = {
params: {
token?: string;
@@ -36,6 +38,8 @@ export default async function CompletedSigningPage({
return notFound();
}
+ const truncatedTitle = truncateTitle(document.title);
+
const { documentData } = document;
const [fields, recipient] = await Promise.all([
@@ -89,7 +93,7 @@ export default async function CompletedSigningPage({
You have signed
- "{document.title}"
+ "{truncatedTitle}"