Skip to content

Commit

Permalink
fix(next/web): file url overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sdjdd committed Jul 21, 2023
1 parent bee46ff commit 0ec5138
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,13 @@ function FileField({ files }: CustomFieldProps<string[]>) {
return (
<div className="flex flex-col items-start gap-0.5">
{files.map((file) => (
<a key={file.id} className="truncate" href={file.url} target="_blank" title={file.name}>
<a
key={file.id}
className="max-w-full truncate"
href={file.url}
target="_blank"
title={file.name}
>
{file.name}
</a>
))}
Expand Down

0 comments on commit 0ec5138

Please sign in to comment.