From dd1959abfb69a5471da0323a3fbc61bff45670f6 Mon Sep 17 00:00:00 2001 From: buinsky Date: Sat, 16 Jul 2016 23:39:13 +0300 Subject: [PATCH] Make torrent peers table scrollable horizontally --- src/webui/www/public/properties_content.html | 24 +++++++++++++------- src/webui/www/public/scripts/dynamicTable.js | 16 ++++++------- 2 files changed, 24 insertions(+), 16 deletions(-) diff --git a/src/webui/www/public/properties_content.html b/src/webui/www/public/properties_content.html index 624922062..d27407de2 100644 --- a/src/webui/www/public/properties_content.html +++ b/src/webui/www/public/properties_content.html @@ -65,13 +65,21 @@ @@ -106,6 +114,6 @@ diff --git a/src/webui/www/public/scripts/dynamicTable.js b/src/webui/www/public/scripts/dynamicTable.js index 978a74eae..baf1c8da1 100644 --- a/src/webui/www/public/scripts/dynamicTable.js +++ b/src/webui/www/public/scripts/dynamicTable.js @@ -811,14 +811,14 @@ var TorrentPeersTable = new Class({ this.newColumn('country', 'width: 4px', ''); this.newColumn('ip', 'width: 80px', 'QBT_TR(IP)QBT_TR'); this.newColumn('port', 'width: 35px', 'QBT_TR(Port)QBT_TR'); - this.newColumn('client', 'width: 110px', 'QBT_TR(Client)QBT_TR'); - this.newColumn('progress', 'width: 30px', 'QBT_TR(Progress)QBT_TR'); - this.newColumn('dl_speed', 'width: 30px', 'QBT_TR(Down Speed)QBT_TR'); - this.newColumn('up_speed', 'width: 30px', 'QBT_TR(Up Speed)QBT_TR'); - this.newColumn('downloaded', 'width: 30px', 'QBT_TR(Downloaded)QBT_TR[CONTEXT=PeerListWidget]'); - this.newColumn('uploaded', 'width: 30px', 'QBT_TR(Uploaded)QBT_TR[CONTEXT=PeerListWidget]'); - this.newColumn('connection', 'width: 30px', 'QBT_TR(Connection)QBT_TR'); - this.newColumn('flags', 'width: 30px', 'QBT_TR(Flags)QBT_TR'); + this.newColumn('client', 'width: 140px', 'QBT_TR(Client)QBT_TR'); + this.newColumn('progress', 'width: 50px', 'QBT_TR(Progress)QBT_TR'); + this.newColumn('dl_speed', 'width: 50px', 'QBT_TR(Down Speed)QBT_TR'); + this.newColumn('up_speed', 'width: 50px', 'QBT_TR(Up Speed)QBT_TR'); + this.newColumn('downloaded', 'width: 50px', 'QBT_TR(Downloaded)QBT_TR[CONTEXT=PeerListWidget]'); + this.newColumn('uploaded', 'width: 50px', 'QBT_TR(Uploaded)QBT_TR[CONTEXT=PeerListWidget]'); + this.newColumn('connection', 'width: 50px', 'QBT_TR(Connection)QBT_TR'); + this.newColumn('flags', 'width: 50px', 'QBT_TR(Flags)QBT_TR'); this.newColumn('relevance', 'width: 30px', 'QBT_TR(Relevance)QBT_TR'); this.columns['country'].dataProperties.push('country_code');