Make spacing below template folder heading even

It was a bit inconsistent depending on whether there was/wasn’t a search
box or channel tabs on the page.

I found this just too complicated to do in pure CSS, so added a new
spacing class which gets toggled on and off.
This commit is contained in:
Chris Hill-Scott
2019-06-21 15:37:04 +01:00
parent 003e926f27
commit b4dde3842e
3 changed files with 12 additions and 11 deletions

View File

@@ -10,7 +10,7 @@
{% endif %}
</p>
{% else %}
<nav id=template-list>
<nav id="template-list" class="{{ 'top-gutter-0' if (not show_template_nav and not show_search_box) else '' }}">
{% for item in template_list %}
<div class="template-list-item {% if current_user.has_permissions('manage_templates') %}template-list-item-with-checkbox{% endif %} {% if item.ancestors %}template-list-item-hidden-by-default{% endif %} {% if not item.ancestors %}template-list-item-without-ancestors{% endif %}">
{% if current_user.has_permissions('manage_templates') %}