diff --git a/searx/static/themes/simple/src/less/detail.less b/searx/static/themes/simple/src/less/detail.less index 253ffd5b2..fd7858a1e 100644 --- a/searx/static/themes/simple/src/less/detail.less +++ b/searx/static/themes/simple/src/less/detail.less @@ -67,7 +67,10 @@ article.result-images .detail { p { color: var(--color-result-detail-label-font); font-size: 0.9rem; - line-height: 0.9rem; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + margin: 0.8rem 0; span { display: inline-block; diff --git a/searx/static/themes/simple/src/less/style.less b/searx/static/themes/simple/src/less/style.less index 7b067a170..c7f459e59 100644 --- a/searx/static/themes/simple/src/less/style.less +++ b/searx/static/themes/simple/src/less/style.less @@ -464,6 +464,17 @@ article[data-vim-selected].category-social { background: var(--color-result-image-background); } + .image_resolution { + position: absolute; + right: 0; + bottom: 0; + background: rgba(0, 0, 0, 50%); + padding: 0.3rem 0.5rem; + font-size: 0.9rem; + color: #fff; + border-top-left-radius: 0.3rem; + } + span.title, span.source { display: block; diff --git a/searx/templates/simple/result_templates/images.html b/searx/templates/simple/result_templates/images.html index 0462588be..ff62457ec 100644 --- a/searx/templates/simple/result_templates/images.html +++ b/searx/templates/simple/result_templates/images.html @@ -1,11 +1,9 @@
{{- "" -}} {{- "" -}} {{ result.title|striptags }}{{- "" -}} - {{ result.title|striptags }}{{- "" -}} - - {{- result.parsed_url.netloc -}} - {%- if result.resolution %} - {{ result.resolution }}{%- endif -%} - {{- "" -}} + {%- if result.resolution %} {{ result.resolution }} {%- endif -%} + {{ result.title|striptags }}{{- "" -}} + {{- result.parsed_url.netloc -}}{{- "" -}} {{- "" -}}
{{- "" -}} {{ icon('close') }}{{- "" -}}