diff options
| author | mrpaulblack <paul@paulgo.io> | 2022-02-21 22:18:48 +0100 |
|---|---|---|
| committer | mrpaulblack <paul@paulgo.io> | 2022-02-26 22:31:47 +0100 |
| commit | 21e3c4051689318d887da6bd0fd5ff9eaf077ae2 (patch) | |
| tree | b7ad1efba18fec381efb140f36f6d67d6aa27445 /searx/static/themes/simple/src/js | |
| parent | 3408d061aab9abc6168fec9bbc6deab71b236dac (diff) | |
[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)
Diffstat (limited to 'searx/static/themes/simple/src/js')
| -rw-r--r-- | searx/static/themes/simple/src/js/main/results.js | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/searx/static/themes/simple/src/js/main/results.js b/searx/static/themes/simple/src/js/main/results.js index 609bd8ecd..4eae58435 100644 --- a/searx/static/themes/simple/src/js/main/results.js +++ b/searx/static/themes/simple/src/js/main/results.js @@ -7,9 +7,6 @@ } searxng.ready(function () { - searxng.image_thumbnail_layout = new searxng.ImageLayout('#urls', '#urls .result-images', 'img.image_thumbnail', 14, 6, 200); - searxng.image_thumbnail_layout.watch(); - d.querySelectorAll('#urls img.image').forEach( img => img.addEventListener( @@ -74,13 +71,11 @@ } } d.getElementById('results').classList.add('image-detail-open'); - searxng.image_thumbnail_layout.align(); searxng.scrollPageToSelected(); } searxng.closeDetail = function (e) { d.getElementById('results').classList.remove('image-detail-open'); - searxng.image_thumbnail_layout.align(); searxng.scrollPageToSelected(); } searxng.on('.result-detail-close', 'click', e => { |