From 21e3c4051689318d887da6bd0fd5ff9eaf077ae2 Mon Sep 17 00:00:00 2001 From: mrpaulblack Date: Mon, 21 Feb 2022 22:18:48 +0100 Subject: [simple theme] replace Image_layout.js with flexbox CS impl. * drop image_layout.js from simple theme * move image_layout.js to oscar theme and delete common js dir (since its empty now) * align top position of image detail modal with bottom position of search header * use flexbox to display images; row height can be set via @results-image-row-height in defenitions.less * display span title underneath each image with a max width of 12rem * increase margin and padding around image article on desktop and tablet * make article height smaller on phone layout (height of 6rem) to display more content on current view * remove content from result, if the title and content matches * use a group that cotains the flex image article, if images are mixed with other categories * fix pylint issues in webapp.py * use the default.html result template in unit tests (thanks @return42) --- tests/unit/test_webapp.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/unit/test_webapp.py b/tests/unit/test_webapp.py index a50bd5c78..aed6f2dd4 100644 --- a/tests/unit/test_webapp.py +++ b/tests/unit/test_webapp.py @@ -33,7 +33,8 @@ class ViewsTestCase(SearxTestCase): 'engine': 'startpage', 'parsed_url': ParseResult( scheme='http', netloc='first.test.xyz', path='/', params='', query='', fragment='' - ), # noqa + ), + 'template': 'default.html', }, { 'content': 'second test content', @@ -43,7 +44,8 @@ class ViewsTestCase(SearxTestCase): 'engine': 'youtube', 'parsed_url': ParseResult( scheme='http', netloc='second.test.xyz', path='/', params='', query='', fragment='' - ), # noqa + ), + 'template': 'default.html', }, ] -- cgit v1.2.3