From baff1cbbab8a72155823c3186971a5f56d7a92f2 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Wed, 21 Apr 2021 18:49:13 +0200 Subject: [PATCH] fix issues from review --- searx/__init__.py | 1 + searx/static/themes/simple/less/toolkit.less | 2 +- searx/templates/oscar/preferences.html | 18 ------------------ 3 files changed, 2 insertions(+), 19 deletions(-) diff --git a/searx/__init__.py b/searx/__init__.py index 15048bcc2..11adbba73 100644 --- a/searx/__init__.py +++ b/searx/__init__.py @@ -20,6 +20,7 @@ import searx.settings_loader from os import environ from os.path import realpath, dirname, join, abspath, isfile + searx_dir = abspath(dirname(__file__)) engine_dir = dirname(realpath(__file__)) static_path = abspath(join(dirname(__file__), 'static')) diff --git a/searx/static/themes/simple/less/toolkit.less b/searx/static/themes/simple/less/toolkit.less index 3999df3b6..b3dba9ea9 100644 --- a/searx/static/themes/simple/less/toolkit.less +++ b/searx/static/themes/simple/less/toolkit.less @@ -493,7 +493,7 @@ select { width: 3rem; display: inline-block; position: absolute; - padding: 0 0.5rem; + padding: 0 0.5rem; text-align: right; } diff --git a/searx/templates/oscar/preferences.html b/searx/templates/oscar/preferences.html index 9051f82aa..e8cae1ca5 100644 --- a/searx/templates/oscar/preferences.html +++ b/searx/templates/oscar/preferences.html @@ -16,24 +16,6 @@ {%- endif -%} {%- endmacro %} -{%- macro engine_time(engine_name, css_align_class) -%} - - {%- if stats[engine_name].time != None -%} - - {%- if stats[engine_name]['warn_time'] -%} - {{icon('exclamation-sign')}} - {%- endif -%} - {{- stats[engine_name].time -}} - {{- "" -}} - - {%- endif -%} - -{%- endmacro -%} - {%- macro engine_time(engine_name, css_align_class) -%} {{- "" -}} {%- if stats[engine_name].time != None -%}