Fix file name/folder name truncation (#2456)

fix filename/foldername truncation

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
This commit is contained in:
Sean Hatfield
2024-10-15 12:52:01 -07:00
committed by GitHub
parent 52f2f87179
commit 15ca5e8103
3 changed files with 3 additions and 3 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>