diff options
| author | Alexandre Flament <alex@al-f.net> | 2021-03-22 12:00:48 +0100 |
|---|---|---|
| committer | Alexandre Flament <alex@al-f.net> | 2021-04-05 11:29:17 +0200 |
| commit | 7a0fbdecc484284296574a2c2ba9afda01212723 (patch) | |
| tree | 9ec359ced984cc18be60978458519e84feb7e8fa /searx/static/themes/oscar/src/js/element_modifiers.js | |
| parent | ba90c5a2e0629b0a04a090f11781782d15ca5dbe (diff) | |
[enh] oscar: image thumbnail layout
Adjust thumbnail sizes to fill the container width
Diffstat (limited to 'searx/static/themes/oscar/src/js/element_modifiers.js')
| -rw-r--r-- | searx/static/themes/oscar/src/js/element_modifiers.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/searx/static/themes/oscar/src/js/element_modifiers.js b/searx/static/themes/oscar/src/js/element_modifiers.js index a113df9a3..087f7d479 100644 --- a/searx/static/themes/oscar/src/js/element_modifiers.js +++ b/searx/static/themes/oscar/src/js/element_modifiers.js @@ -108,4 +108,10 @@ $(document).ready(function(){ tabs.children().attr("aria-selected", "false"); $(a.target).parent().attr("aria-selected", "true"); }); + + /** + * Layout images according to their sizes + */ + searx.image_thumbnail_layout = new searx.ImageLayout('#main_results', '#main_results .result-images', 'img.img-thumbnail', 15, 200); + searx.image_thumbnail_layout.watch(); }); |