Skip to content

Commit

Permalink
fix(ui): wrap too long tracker url (#757)
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 authored Jun 7, 2024
1 parent b52ff51 commit 4b36bdb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const TorrentTrackers: FC = () => {

const trackerDetails = trackers.map((tracker) => (
<tr key={tracker.url}>
<td>{tracker.url}</td>
<td className="torrent-details__trackers--url">{tracker.url}</td>
<td>{trackerTypes[tracker.type - 1]}</td>
</tr>
));
Expand Down
7 changes: 7 additions & 0 deletions client/src/sass/components/_torrent-details-panel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -347,4 +347,11 @@ $torrent-details--tags--foreground: #1a2028;
white-space: nowrap;
}
}

&__trackers {
&--url {
overflow-wrap: anywhere;
text-wrap: balance;
}
}
}

0 comments on commit 4b36bdb

Please sign in to comment.