Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

fix maxLength

Steven Tey00121576a698
diff --git a/apps/web/ui/partners/design/modals/files-block-modal.tsx b/apps/web/ui/partners/design/modals/files-block-modal.tsx
index 8c24b63e02..cafcec6f18 100644
--- a/apps/web/ui/partners/design/modals/files-block-modal.tsx
+++ b/apps/web/ui/partners/design/modals/files-block-modal.tsx
@@ -229,7 +229,7 @@ function FilesBlockModalInner({
<textarea
id={`${id}-${field.id}-description`}
rows={2}
- maxLength={1000}
+ maxLength={240}
placeholder="More information about the file"
className="block max-h-32 min-h-10 w-full rounded-md border-neutral-300 text-neutral-900 placeholder-neutral-400 focus:border-neutral-500 focus:outline-none focus:ring-neutral-500 sm:text-sm"
{...register(`items.${index}.description`)}
diff --git a/apps/web/ui/partners/design/modals/text-block-modal.tsx b/apps/web/ui/partners/design/modals/text-block-modal.tsx
index bf647715c6..029bb07ea1 100644
--- a/apps/web/ui/partners/design/modals/text-block-modal.tsx
+++ b/apps/web/ui/partners/design/modals/text-block-modal.tsx
@@ -89,7 +89,7 @@ function TextBlockModalInner({
<textarea
id={`${id}-content`}
rows={12}
- maxLength={240}
+ maxLength={10000}
onKeyDown={handleKeyDown}
placeholder="Start typing (markdown supported)"
className={cn(