Skip to content

Commit

Permalink
Merge pull request #145 from usegalaxy-au/dev
Browse files Browse the repository at this point in the history
Strip margins from embedded snippets
  • Loading branch information
neoformit authored Aug 13, 2024
2 parents 7357adb + 9dec7e4 commit bec8d70
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions webapp/home/templates/home/snippets/footer.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{% load static %}

<footer>
{% if crop_margin %}
<style>
footer {
margin-top: 0;
}
</style>
{% endif %}

<div class="container logo">
<div class="text-center">
<a href="https://www.biocommons.org.au" target="_blank">
Expand Down
1 change: 1 addition & 0 deletions webapp/home/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ def embed_snippet(request, snippet_path):
return render(request, 'embed-snippet.html', {
'title': 'Galaxy Media - embedded snippet',
'snippet_path': snippet_path,
'crop_margin': True, # could make this configurable in future
})
except TemplateDoesNotExist:
raise Http404

0 comments on commit bec8d70

Please sign in to comment.