From 33e722f83b56a984d73868bf36817cb0df0b9cc4 Mon Sep 17 00:00:00 2001 From: Emilien Devos <4016501+unixfox@users.noreply.github.com> Date: Mon, 18 Sep 2023 21:41:52 +0200 Subject: [PATCH] better error message when no results found --- searx/static/themes/simple/src/less/toolkit.less | 9 +++++++++ searx/templates/simple/elements/engines_msg.html | 4 ++++ searx/templates/simple/messages/no_results.html | 10 ++++++++-- tests/robot/test_webapp.py | 2 +- 4 files changed, 22 insertions(+), 3 deletions(-) diff --git a/searx/static/themes/simple/src/less/toolkit.less b/searx/static/themes/simple/src/less/toolkit.less index 18f72795d..f4e3c36e1 100644 --- a/searx/static/themes/simple/src/less/toolkit.less +++ b/searx/static/themes/simple/src/less/toolkit.less @@ -176,6 +176,15 @@ div.selectable_url { border-color: var(--color-error); } +.dialog-error-block { + .dialog(); + + display: block; + color: var(--color-error); + background: var(--color-error-background); + border-color: var(--color-error); +} + .dialog-warning { .dialog(); diff --git a/searx/templates/simple/elements/engines_msg.html b/searx/templates/simple/elements/engines_msg.html index 33f31842d..db1cefaaf 100644 --- a/searx/templates/simple/elements/engines_msg.html +++ b/searx/templates/simple/elements/engines_msg.html @@ -1,5 +1,9 @@
+ {% if not results and not answers %} +