From ada3df08dc5f43faf4c2bf62fff2380db872b882 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 26 Nov 2018 22:25:52 -0700 Subject: [PATCH] More responsive --- server/ui/src/index.tsx | 64 ++++++++++++++++++++--------------------- 1 file changed, 31 insertions(+), 33 deletions(-) diff --git a/server/ui/src/index.tsx b/server/ui/src/index.tsx index 68ec49c..7d54aa5 100644 --- a/server/ui/src/index.tsx +++ b/server/ui/src/index.tsx @@ -77,41 +77,39 @@ class TorrentSearchComponent extends Component { table() { return (
-
- - +
+ + + + + + + + + + + + {this.state.results.torrents.map(torrent => ( - - - - - - + + + + + + - - - {this.state.results.torrents.map(torrent => ( - - - - - - - - - ))} - -
NameSizeSeedsLeechesCreated
NameSizeSeedsLeechesCreated{torrent.name}{humanFileSize(torrent.size_bytes, true)}
{torrent.seeders}
{torrent.leechers} + {moment(torrent.created_unix * 1000).fromNow()} + + + + + + + +
{torrent.name}{humanFileSize(torrent.size_bytes, true)}
{torrent.seeders}
{torrent.leechers} - {moment(torrent.created_unix * 1000).fromNow()} - - - - - - - -
-
+ ))} + + {this.paginator()}
);