From f1e798a4989f27b4a1734f32a82406847a4194ab Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 25 Aug 2017 19:47:22 -0400 Subject: [PATCH] Limit detail view to 3 torrents --- src/ui/torrent_details.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ui/torrent_details.js b/src/ui/torrent_details.js index abc6514..95fbb1e 100644 --- a/src/ui/torrent_details.js +++ b/src/ui/torrent_details.js @@ -203,10 +203,17 @@ class TorrentDetails extends Component { return (
{selection.length > 1 ? this.renderHeader(selection) : null} - {selection.map(id => )} + {selection.length > 3 ? +

+ + ...{selection.length - 3} more hidden... + +

+ : null}
); }