mirror of
https://github.com/searxng/searxng.git
synced 2026-05-29 22:24:13 +02:00
[enh] oscar: image thumbnail layout
Adjust thumbnail sizes to fill the container width
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user