Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues with large paths #8268

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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