From d0556131250fdda246a19341c2ce1cb4b04a759b Mon Sep 17 00:00:00 2001 From: Gabriele Date: Mon, 8 Dec 2014 21:00:00 +0100 Subject: [PATCH] WebUI: Make column width less variable in transferlist Each column has a fixed width that allows to read its content. The column for the name of the torrents has a variable width with an upper and a lower constraint. If the width of the page is not sufficient to fit the table, a scrollbar will appear. --- src/webui/www/public/css/dynamicTable.css | 8 ++++++++ src/webui/www/public/transferlist.html | 23 +++++++++++------------ 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/src/webui/www/public/css/dynamicTable.css b/src/webui/www/public/css/dynamicTable.css index bbe4eb89a..153a6a57e 100644 --- a/src/webui/www/public/css/dynamicTable.css +++ b/src/webui/www/public/css/dynamicTable.css @@ -64,3 +64,11 @@ #transferList img.statusIcon { margin-bottom: -4px; } + +#transferList th, +#transferList td { + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + max-width: 300px; +} \ No newline at end of file diff --git a/src/webui/www/public/transferlist.html b/src/webui/www/public/transferlist.html index 1891a11f4..9e8bc01a1 100644 --- a/src/webui/www/public/transferlist.html +++ b/src/webui/www/public/transferlist.html @@ -1,18 +1,17 @@ - - - - - - - - - - - - + + + + + + + + + + +
_(Name)#_(Size)_(Done)_(Seeds)_(Peers)_(Down Speed)_(Up Speed)_(ETA)_(Ratio)_(Name)#_(Size)_(Done)_(Seeds)_(Peers)_(Down Speed)_(Up Speed)_(ETA)_(Ratio)