mirror of
https://github.com/searxng/searxng.git
synced 2025-08-31 23:46:49 +02:00
[enh] oscar: image thumbnail layout
Adjust thumbnail sizes to fill the container width
This commit is contained in:
parent
ba90c5a2e0
commit
7a0fbdecc4
25 changed files with 513 additions and 230 deletions
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue