From 4ef2afbe7b648c30364dd7b69543ddd7bf333081 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrik=20Elfstr=C3=B6m?= Date: Fri, 20 Dec 2024 01:45:29 +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 --- 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 1dc074745..186d0f5e8 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 99817ed4a..da0b74d7e 100644 --- a/src/webui/www/private/index.html +++ b/src/webui/www/private/index.html @@ -140,7 +140,7 @@
- + diff --git a/src/webui/www/private/views/log.html b/src/webui/www/private/views/log.html index 1f54315f5..ace139971 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 beb84b4c9..95fa5ff8f 100644 --- a/src/webui/www/private/views/propertiesToolbar.html +++ b/src/webui/www/private/views/propertiesToolbar.html @@ -1,6 +1,6 @@