From 08f3630f018351078f28bfbe3dd4b695c60c48d0 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Wed, 30 Mar 2022 14:26:17 +0800 Subject: [PATCH] WebUI: make various dialog resizable And enlarge dialog default width. --- src/webui/www/private/newcategory.html | 4 ++-- src/webui/www/private/newtag.html | 2 +- src/webui/www/private/rename.html | 2 +- src/webui/www/private/scripts/mocha-init.js | 22 ++++++++++----------- src/webui/www/private/setlocation.html | 4 ++-- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/webui/www/private/newcategory.html b/src/webui/www/private/newcategory.html index 7839a29f9..6fc407d09 100644 --- a/src/webui/www/private/newcategory.html +++ b/src/webui/www/private/newcategory.html @@ -132,9 +132,9 @@

QBT_TR(Category)QBT_TR[CONTEXT=TransferListWidget]:

- +

QBT_TR(Save path)QBT_TR[CONTEXT=TransferListWidget]:

- +
diff --git a/src/webui/www/private/newtag.html b/src/webui/www/private/newtag.html index 6b95fdae8..16b779ce3 100644 --- a/src/webui/www/private/newtag.html +++ b/src/webui/www/private/newtag.html @@ -95,7 +95,7 @@

QBT_TR(Comma-separated tags:)QBT_TR[CONTEXT=TransferListWidget]

- +
diff --git a/src/webui/www/private/rename.html b/src/webui/www/private/rename.html index c530e313c..1284812db 100644 --- a/src/webui/www/private/rename.html +++ b/src/webui/www/private/rename.html @@ -65,7 +65,7 @@

QBT_TR(New name)QBT_TR[CONTEXT=TransferListWidget]:

- +
diff --git a/src/webui/www/private/scripts/mocha-init.js b/src/webui/www/private/scripts/mocha-init.js index 2576673ab..643585b08 100644 --- a/src/webui/www/private/scripts/mocha-init.js +++ b/src/webui/www/private/scripts/mocha-init.js @@ -489,7 +489,7 @@ const initializeWindows = function() { loadMethod: 'iframe', contentURL: new URI("setlocation.html").setData("hashes", hashes.join('|')).setData("path", row.full_data.save_path).toString(), scrollbars: false, - resizable: false, + resizable: true, maximizable: false, paddingVertical: 0, paddingHorizontal: 0, @@ -511,11 +511,11 @@ const initializeWindows = function() { loadMethod: 'iframe', contentURL: new URI("rename.html").setData("hash", hash).setData("name", row.full_data.name).toString(), scrollbars: false, - resizable: false, + resizable: true, maximizable: false, paddingVertical: 0, paddingHorizontal: 0, - width: 250, + width: 400, height: 100 }); } @@ -532,11 +532,11 @@ const initializeWindows = function() { loadMethod: 'iframe', contentURL: new URI("newcategory.html").setData("action", action).setData("hashes", hashes.join('|')).toString(), scrollbars: false, - resizable: false, + resizable: true, maximizable: false, paddingVertical: 0, paddingHorizontal: 0, - width: 250, + width: 400, height: 150 }); } @@ -567,11 +567,11 @@ const initializeWindows = function() { loadMethod: 'iframe', contentURL: new URI("newcategory.html").setData("action", action).toString(), scrollbars: false, - resizable: false, + resizable: true, maximizable: false, paddingVertical: 0, paddingHorizontal: 0, - width: 250, + width: 400, height: 150 }); updateMainData(); @@ -587,11 +587,11 @@ const initializeWindows = function() { loadMethod: 'iframe', contentURL: new URI('newcategory.html').setData("action", action).setData("categoryName", categoryName).setData("savePath", savePath).toString(), scrollbars: false, - resizable: false, + resizable: true, maximizable: false, paddingVertical: 0, paddingHorizontal: 0, - width: 250, + width: 400, height: 150 }); updateMainData(); @@ -682,7 +682,7 @@ const initializeWindows = function() { loadMethod: 'iframe', contentURL: new URI("newtag.html").setData("action", action).setData("hashes", hashes.join("|")).toString(), scrollbars: false, - resizable: false, + resizable: true, maximizable: false, paddingVertical: 0, paddingHorizontal: 0, @@ -728,7 +728,7 @@ const initializeWindows = function() { loadMethod: 'iframe', contentURL: new URI("newtag.html").setData("action", action).toString(), scrollbars: false, - resizable: false, + resizable: true, maximizable: false, paddingVertical: 0, paddingHorizontal: 0, diff --git a/src/webui/www/private/setlocation.html b/src/webui/www/private/setlocation.html index 6c7df6270..68122fa43 100644 --- a/src/webui/www/private/setlocation.html +++ b/src/webui/www/private/setlocation.html @@ -68,8 +68,8 @@

QBT_TR(Location)QBT_TR[CONTEXT=TransferListWidget]:

- -
 
+ +