From 9709672b3473022fe143a013f2402bea0534e81b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Elfstr=C3=B6m?= Date: Sun, 22 Dec 2024 10:19:03 +0100 Subject: [PATCH] WebUI: Change filter inputs to type search Changing input type from text to search for all search and filter inputs to enable user to easily clear input. This feature is yet to be implemented in Firefox. See tracking bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1654288 Also fix search icon horizontal positioning and minor input box paddings. Closes #15481. PR #22033. --- src/webui/www/private/css/style.css | 9 +++++---- src/webui/www/private/index.html | 2 +- src/webui/www/private/views/log.html | 6 +++--- src/webui/www/private/views/propertiesToolbar.html | 2 +- src/webui/www/private/views/search.html | 10 +++++----- 5 files changed, 15 insertions(+), 14 deletions(-) diff --git a/src/webui/www/private/css/style.css b/src/webui/www/private/css/style.css index 1dc074745340..186d0f5e87e9 100644 --- a/src/webui/www/private/css/style.css +++ b/src/webui/www/private/css/style.css @@ -107,6 +107,7 @@ ol { /* Forms */ +input[type="search"], input[type="text"], input[type="number"], input[type="password"], @@ -503,13 +504,13 @@ a.propButton img { #torrentsFilterInput { background-color: var(--color-background-default); background-image: url("../images/edit-find.svg"); - background-position: left; + background-position: 2px; background-repeat: no-repeat; background-size: 1.5em; border: 1px solid var(--color-border-default); border-radius: 3px; - min-width: 160px; - padding: 2px 12px 2px 25px; + min-width: 170px; + padding: 2px 2px 2px 25px; } #torrentsFilterRegexBox { @@ -555,7 +556,7 @@ a.propButton img { #torrentFilesFilterInput { background-image: url("../images/edit-find.svg"); - background-position: left; + background-position: 1px; background-repeat: no-repeat; background-size: 1.5em; margin-top: -1px; diff --git a/src/webui/www/private/index.html b/src/webui/www/private/index.html index 99817ed4a9af..da0b74d7e876 100644 --- a/src/webui/www/private/index.html +++ b/src/webui/www/private/index.html @@ -140,7 +140,7 @@

qBittorrent Web User Interface
- + diff --git a/src/webui/www/private/views/log.html b/src/webui/www/private/views/log.html index 1f54315f52e2..ace1399713ee 100644 --- a/src/webui/www/private/views/log.html +++ b/src/webui/www/private/views/log.html @@ -43,9 +43,9 @@ #filterTextInput { background-image: url("../images/edit-find.svg"); background-repeat: no-repeat; - background-position: left; + background-position: 2px; background-size: 1.5em; - padding: 2px 12px 2px 2em; + padding: 2px 2px 2px 2em; margin-left: .3em; width: 237px; border: 1px solid var(--color-border-default); @@ -96,7 +96,7 @@ - +
diff --git a/src/webui/www/private/views/propertiesToolbar.html b/src/webui/www/private/views/propertiesToolbar.html index beb84b4c93dc..95fa5ff8f47c 100644 --- a/src/webui/www/private/views/propertiesToolbar.html +++ b/src/webui/www/private/views/propertiesToolbar.html @@ -1,6 +1,6 @@