diff options
| author | Markus Heiser <markus.heiser@darmarit.de> | 2021-12-29 14:30:16 +0100 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarit.de> | 2021-12-29 14:30:16 +0100 |
| commit | f75199b1ece4c67a19160ef9c7c5baabd21ebd50 (patch) | |
| tree | 9d7d2ccbe5e69030c2d494ba64ad47ca20ea277f /docs/dev/search_api.rst | |
| parent | 5cbbdc305f08ff11d9b59fbf95743ebe99cf3dbf (diff) | |
[fix] simple theme: hide the image if img load fails
Add event listener to query selector::
'#urls img.image'
From the user point of view, I think it is better to hide the image:
img_load_error.svg is helplful in the image category because it still allows to
select the image. IMO, in the news category, the fact there is a missing image
won't help to choose the links. From a developer point of view, the place holder
is signal that may be the engine needs to be updated (at least give a look). The
browser console should show the same information too, but it requires some
additional steps. [1]
[1] https://github.com/searxng/searxng/pull/610#issuecomment-997640132
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'docs/dev/search_api.rst')
0 files changed, 0 insertions, 0 deletions