Skip to content

Commit 2996c48

Browse files
authored
Fix issues with large paths (#8268)
2 parents 0f5b172 + d40cb8a commit 2996c48

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/tribler/ui/src/dialogs/CreateTorrent.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const filenameColumns: ColumnDef<Filename>[] = [
2727
accessorKey: "path",
2828
header: "Filename",
2929
cell: ({ row }) => {
30-
return <span className="line-clamp-1 text-xs">{row.original.path}</span>
30+
return <span className="break-all line-clamp-1 text-xs">{row.original.path}</span>
3131
},
3232
},
3333
]

src/tribler/ui/src/dialogs/SaveAs.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const getFileColumns = ({ onSelectedFiles }: { onSelectedFiles: (row: Row<FileTr
4848
: <ChevronRight size="16" color="#777"></ChevronRight>}
4949
</button>
5050
)}
51-
{row.original.name}
51+
<span className="break-all line-clamp-1">{row.original.name}</span>
5252
</div>
5353
)
5454
}

src/tribler/ui/src/pages/Downloads/Details.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default function DownloadDetails({ selectedDownloads }: { selectedDownloa
5757
</div>
5858
<div className="flex flex-row">
5959
<div className="basis-1/4">{t('Name')}</div>
60-
<div className="basis-3/4">{download?.name}</div>
60+
<div className="basis-3/4 break-all line-clamp-1">{download?.name}</div>
6161
</div>
6262
<div className="flex flex-row">
6363
<div className="basis-1/4">{t('Status')}</div>
@@ -77,7 +77,7 @@ export default function DownloadDetails({ selectedDownloads }: { selectedDownloa
7777
</div>
7878
<div className="flex flex-row">
7979
<div className="basis-1/4">{t('Destination')}</div>
80-
<div className="basis-3/4">{download?.destination}</div>
80+
<div className="basis-3/4 break-all line-clamp-1">{download?.destination}</div>
8181
</div>
8282
<div className="flex flex-row">
8383
<div className="basis-1/4">{t('Ratio')}</div>

src/tribler/ui/src/pages/Downloads/Files.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const getFileColumns = ({ onSelectedFiles }: { onSelectedFiles: (row: Row<FileTr
3030
: <ChevronRight size="16" color="#777"></ChevronRight>}
3131
</button>
3232
)}
33-
{row.original.name}
33+
<span className="break-all line-clamp-1">{row.original.name}</span>
3434
</div>
3535
)
3636
}

0 commit comments

Comments
 (0)