Skip to content

Commit

Permalink
Fix file name/folder name truncation (#2456)
Browse files Browse the repository at this point in the history
fix filename/foldername truncation

Co-authored-by: Timothy Carambat <[email protected]>
  • Loading branch information
shatfield4 and timothycarambat authored Oct 15, 2024
1 parent 52f2f87 commit 15ca5e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function FileRow({ item, selected, toggleSelection }) {
className="shrink-0 text-base font-bold w-4 h-4 mr-[3px]"
weight="fill"
/>
<p className="whitespace-nowrap overflow-hidden text-ellipsis">
<p className="whitespace-nowrap overflow-hidden text-ellipsis max-w-[400px]">
{middleTruncate(item.title, 55)}
</p>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function FolderRow({
className="shrink-0 text-base font-bold w-4 h-4 mr-[3px]"
weight="fill"
/>
<p className="whitespace-nowrap overflow-show">
<p className="whitespace-nowrap overflow-show max-w-[400px]">
{middleTruncate(item.name, 35)}
</p>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default function WorkspaceFileRow({
className="shrink-0 text-base font-bold w-4 h-4 mr-[3px] ml-1"
weight="fill"
/>
<p className="whitespace-nowrap overflow-hidden text-ellipsis">
<p className="whitespace-nowrap overflow-hidden text-ellipsis max-w-[400px]">
{middleTruncate(item.title, 50)}
</p>
</div>
Expand Down

0 comments on commit 15ca5e8

Please sign in to comment.