Maintain full width for items without a path

This commit is contained in:
Chris Hill-Scott
2018-11-26 10:56:48 +00:00
parent ee991d0142
commit adcd699712
2 changed files with 17 additions and 1 deletions

View File

@@ -52,6 +52,22 @@
display: none;
}
&-without-ancestors {
.message-name {
a {
display: block;
&:first-child {
display: block;
}
}
}
}
}
&-folder {

View File

@@ -12,7 +12,7 @@
{% else %}
<nav id=template-list>
{% for item in template_list %}
<div class="template-list-item {% if can_manage_folders %}template-list-item-with-checkbox{% endif %} {% if item.ancestors %}template-list-item-hidden-by-default{% endif %}">
<div class="template-list-item {% if can_manage_folders %}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 can_manage_folders %}
{{ unlabelled_checkbox(
id='templates-or-folder-{}'.format(item.id),