Skip to content

Commit

Permalink
Fix issues with large paths
Browse files Browse the repository at this point in the history
  • Loading branch information
egbertbouman committed Nov 15, 2024
1 parent 0f5b172 commit 72a9516
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/tribler/ui/src/dialogs/CreateTorrent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const filenameColumns: ColumnDef<Filename>[] = [
accessorKey: "path",
header: "Filename",
cell: ({ row }) => {
return <span className="line-clamp-1 text-xs">{row.original.path}</span>
return <span className="break-all line-clamp-1 text-xs">{row.original.path}</span>
},
},
]
Expand Down
2 changes: 1 addition & 1 deletion src/tribler/ui/src/dialogs/SaveAs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const getFileColumns = ({ onSelectedFiles }: { onSelectedFiles: (row: Row<FileTr
: <ChevronRight size="16" color="#777"></ChevronRight>}
</button>
)}
{row.original.name}
<span className="break-all line-clamp-1">{row.original.name}</span>
</div>
)
}
Expand Down
4 changes: 2 additions & 2 deletions src/tribler/ui/src/pages/Downloads/Details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default function DownloadDetails({ selectedDownloads }: { selectedDownloa
</div>
<div className="flex flex-row">
<div className="basis-1/4">{t('Name')}</div>
<div className="basis-3/4">{download?.name}</div>
<div className="basis-3/4 break-all line-clamp-1">{download?.name}</div>
</div>
<div className="flex flex-row">
<div className="basis-1/4">{t('Status')}</div>
Expand All @@ -77,7 +77,7 @@ export default function DownloadDetails({ selectedDownloads }: { selectedDownloa
</div>
<div className="flex flex-row">
<div className="basis-1/4">{t('Destination')}</div>
<div className="basis-3/4">{download?.destination}</div>
<div className="basis-3/4 break-all line-clamp-1">{download?.destination}</div>
</div>
<div className="flex flex-row">
<div className="basis-1/4">{t('Ratio')}</div>
Expand Down
2 changes: 1 addition & 1 deletion src/tribler/ui/src/pages/Downloads/Files.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const getFileColumns = ({ onSelectedFiles }: { onSelectedFiles: (row: Row<FileTr
: <ChevronRight size="16" color="#777"></ChevronRight>}
</button>
)}
{row.original.name}
<span className="break-all line-clamp-1">{row.original.name}</span>
</div>
)
}
Expand Down

0 comments on commit 72a9516

Please sign in to comment.