summaryrefslogtreecommitdiff
path: root/searx/templates/oscar/result_templates/map.html
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-09-05 16:58:56 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2021-09-06 11:08:50 +0200
commitad528c706efb46b415e460838f4562241a2d10ba (patch)
treecc82327ebfa65d9db37baeb077a670fdc995e32f /searx/templates/oscar/result_templates/map.html
parent48c806954eecc242227ad9868eabe03d1d415621 (diff)
downloadsearxng-ad528c706efb46b415e460838f4562241a2d10ba.tar.gz
searxng-ad528c706efb46b415e460838f4562241a2d10ba.zip
[fix] make result template map more CSP compliant - simple & oscar
Add osm-map-box in:: searx/static/themes/__common__/less/result_templates.less Replaced sty= in files:: ./oscar/result_templates/map.html:64: <div style="height:300px; width:100%; margin: 10px 0;" id="osm-map-{{ index }}"></div> ./simple/result_templates/map.html:65: <div id="result-map-{{ index }}" class="invisible"><div id="osm-map-{{ index }}" style="height:300px; width:100%; margin: 10px 0;" ></div></div> Reported-by: https://github.com/searxng/searxng/issues/57 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/templates/oscar/result_templates/map.html')
-rw-r--r--searx/templates/oscar/result_templates/map.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/templates/oscar/result_templates/map.html b/searx/templates/oscar/result_templates/map.html
index eb3fccfc0..3b7ba1111 100644
--- a/searx/templates/oscar/result_templates/map.html
+++ b/searx/templates/oscar/result_templates/map.html
@@ -64,7 +64,7 @@
{%- if (result.latitude and result.longitude) or result.boundingbox -%}
<div class="collapse" id="result-map-{{ index }}">
- <div style="height:300px; width:100%; margin: 10px 0;" id="osm-map-{{ index }}"></div>
+ <div class="osm-map-box" id="osm-map-{{ index }}"></div>
</div>
{%- endif -%}