Skip to content

Commit 8c49602

Browse files
Fix layout of minimal list view
1 parent 67b49ec commit 8c49602

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

web/profiles/custom/os2loop/themes/os2loop_theme/templates/content/node--list-display.html.twig

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,6 @@
9696
{# text #}
9797
<div class="h5 m-0">
9898
<a class="link-unstyled" href="{{ url }}">{{ label }}</a>
99-
{% if display_inline_view %}
100-
<div class="badge badge-primary {{ badge_class }} ml-20 align-top">{{ node.type.entity.label }}</div>
101-
{% endif %}
10299
</div>
103100
{% if not display_inline_view %}
104101
{% if body_text %}
@@ -114,9 +111,14 @@
114111
</div>
115112
{% endif %}
116113
</div>
117-
<div class="col-auto ml-auto list-display-date small">
114+
<div class="col-auto ml-auto d-inline-flex">
115+
{% if display_inline_view %}
116+
<div class="badge badge-primary {{ badge_class }} mr-20 align-self-start">{{ node.type.entity.label }}</div>
117+
{% endif %}
118118
{# date #}
119-
{{ node.createdtime|date('d-m-Y') }}
119+
<div class="list-display-date small">
120+
{{ node.createdtime|date('d-m-Y') }}
121+
</div>
120122
</div>
121123
</div>
122124
</div>

0 commit comments

Comments
 (0)