From 66e3be157991da0405d3882667fc92e1f4ee53f9 Mon Sep 17 00:00:00 2001 From: Thomas Piccirello Date: Tue, 16 Oct 2018 00:15:15 -0400 Subject: [PATCH] Replace WebUI Options fixed-width labels This allows the labels to auto-expand based on the language used, and also removes unnecessary whitespace. Additionally, this results in a look more consistent with the GUI which right-aligns labels. --- src/webui/www/private/css/style.css | 24 -- src/webui/www/private/download.html | 138 ++++++--- .../www/private/preferences_content.html | 270 +++++++++++++----- src/webui/www/private/shareratio.html | 4 +- src/webui/www/private/upload.html | 126 +++++--- 5 files changed, 369 insertions(+), 193 deletions(-) diff --git a/src/webui/www/private/css/style.css b/src/webui/www/private/css/style.css index c47a6a758..12b360888 100644 --- a/src/webui/www/private/css/style.css +++ b/src/webui/www/private/css/style.css @@ -375,30 +375,6 @@ fieldset.settings label { padding: 2px; } -fieldset.settings .leftLabelSmall { - width: 5em; - float: left; - text-align: right; - margin-right: 0.5em; - display: block; -} - -fieldset.settings .leftLabelMedium { - width: 9em; - float: left; - text-align: right; - margin-right: 0.5em; - display: block; -} - -fieldset.settings .leftLabelLarge { - width: 14em; - float: left; - text-align: right; - margin-right: 0.5em; - display: block; -} - div.formRow { clear: left; display: block; diff --git a/src/webui/www/private/download.html b/src/webui/www/private/download.html index a2312ddc8..b95597031 100644 --- a/src/webui/www/private/download.html +++ b/src/webui/www/private/download.html @@ -18,52 +18,98 @@

QBT_TR(Download Torrents from their URLs or Magnet links)QBT_TR[CONTEXT=HttpServer]

QBT_TR(Only one link per line)QBT_TR[CONTEXT=HttpServer]

-
-
- - -
-
- - -
-
- - -
-
- - -
-
- - - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
diff --git a/src/webui/www/private/preferences_content.html b/src/webui/www/private/preferences_content.html index 630d185c0..1820325c0 100644 --- a/src/webui/www/private/preferences_content.html +++ b/src/webui/www/private/preferences_content.html @@ -83,23 +83,47 @@
-
- -
-
- -
+ + + + + + + + + +
+ + + +
+ + + +
-
- -
-
- -
+ + + + + + + + + +
+ + + +
+ + + +
@@ -178,23 +202,33 @@
QBT_TR(Proxy Server)QBT_TR[CONTEXT=OptionsDialog] -
- - -
-
- - -
-
- - -
+ + + + + + + + + +
+ + + + + + + + + + + +
@@ -210,14 +244,24 @@
-
- - -
-
- - -
+ + + + + + + + + +
+ + + +
+ + + +
@@ -321,18 +365,32 @@
-
- - -
-
- - -
-
- - -
+ + + + + + + + + + + + + +
+ + + +
+ + + +
+ + + +
@@ -440,33 +498,64 @@
QBT_TR(Web User Interface (Remote control))QBT_TR[CONTEXT=OptionsDialog] - -
+ + + + + +
+ + + + +
+

-
- - -
-
- - -
+ + + + + + + + + +
+ + + +
+ + + +
QBT_TR(Authentication)QBT_TR[CONTEXT=OptionsDialog] -
- -
-
- - -
+ + + + + + + + + +
+ + + +
+ + + +
@@ -496,10 +585,16 @@ -
- - -
+ + + + + +
+ + + +
@@ -512,15 +607,32 @@

-
- -
-
- -
-
- -
+ + + + + + + + + + + + + +
+ + + +
+ + + +
+ + + +
diff --git a/src/webui/www/private/shareratio.html b/src/webui/www/private/shareratio.html index 2c867b0bd..cf8b025c3 100644 --- a/src/webui/www/private/shareratio.html +++ b/src/webui/www/private/shareratio.html @@ -150,12 +150,12 @@
- +
- +
diff --git a/src/webui/www/private/upload.html b/src/webui/www/private/upload.html index ba07e781d..d0d9a7624 100644 --- a/src/webui/www/private/upload.html +++ b/src/webui/www/private/upload.html @@ -16,48 +16,90 @@
-
-
- - -
-
- - -
-
- - -
-
- - - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + +
+ + + +
+ + + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +
+ + + +