Skip to content

Commit

Permalink
feat(iframe_map): make height configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisig committed Nov 28, 2024
1 parent 7fcc419 commit a253e42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion project/templates/project/components/dashboard/gpu.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ <h3>Explorateur</h3>
<div class="fr-col-12">
<div class="bg-white fr-p-2w h-100">
{% url 'project:map-urban-zones' project.pk as map_url %}
{% include "project/components/map/iframe_map.html" with src=map_url title="Explorateur des zonages d'urbanisme" %}
{% include "project/components/map/iframe_map.html" with src=map_url title="Explorateur des zonages d'urbanisme" height='75vh' %}
</div>
</div>
</div>
2 changes: 1 addition & 1 deletion project/templates/project/components/map/iframe_map.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<iframe
title="{{ title }}"
style="height:50vh"
style="height:{{ height|default:'50vh' }}"
src="{{ src }}"
width="100%"
loading="lazy"
Expand Down

0 comments on commit a253e42

Please sign in to comment.