diff --git a/searx/static/themes/simple/src/less/style.less b/searx/static/themes/simple/src/less/style.less index 5e015579c..bb983838b 100644 --- a/searx/static/themes/simple/src/less/style.less +++ b/searx/static/themes/simple/src/less/style.less @@ -267,6 +267,7 @@ article[data-vim-selected].category-social { float: left; padding: 0.6rem 1rem 0 0; width: 20rem; + height: unset; // remove heigth value that was needed for lazy loading } &.image { diff --git a/searx/templates/simple/macros.html b/searx/templates/simple/macros.html index 3920da2b3..c1c421ab1 100644 --- a/searx/templates/simple/macros.html +++ b/searx/templates/simple/macros.html @@ -23,8 +23,8 @@ {{- part -}} {%- endfor %} {{- result_close_link() -}} - {%- if result.img_src %}{{ result_open_link(result.url) }}{{ result_close_link() }}{% endif -%} - {%- if result.thumbnail %}{{ result_open_link(result.url) }}{{ result_close_link() }}{% endif -%} + {%- if result.img_src %}{{ result_open_link(result.url) }}{{ result_close_link() }}{% endif -%} + {%- if result.thumbnail %}{{ result_open_link(result.url) }}{{ result_close_link() }}{% endif -%}

{{ result_link(result.url, result.title|safe) }}

{%- endmacro -%} diff --git a/searx/templates/simple/result_templates/images.html b/searx/templates/simple/result_templates/images.html index 7e45f028e..e521ee211 100644 --- a/searx/templates/simple/result_templates/images.html +++ b/searx/templates/simple/result_templates/images.html @@ -1,6 +1,6 @@
{{- "" -}} {{- "" -}} - {{ result.title|striptags }}{{- "" -}} + {{ result.title|striptags }}{{- "" -}} {{ result.title|striptags }}{{- "" -}} {{- "" -}}
{{- "" -}} @@ -11,7 +11,7 @@ {%- if result.thumbnail_src -%} {{ result.title|striptags }} {%- else -%} - {{ result.title|striptags }} + {{ result.title|striptags }} {%- endif -%} {{- "" -}}
{{- "" -}}