Skip to content

Commit 2a95cec

Browse files
author
roadiz-ci
committed
style(document/list-table): update icons
1 parent 8841d97 commit 2a95cec

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

templates/documents/list-table.html.twig

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,13 @@
104104
</td>
105105
<td class="mobile-hidden">{{ document.mimeType }}</td>
106106
<td>
107-
{% if document.filesize > 0 %}<span class="rz-icon-ri--eye-line"></span> {{ document.filesize|formatBytes }}{% endif %}
108-
{% if document.rawDocument %}
109-
{% if document.rawDocument.filesize > 0 %}
110-
<br>
111-
<span class="rz-icon-ri--camera-line" title="{{ 'original.document'|trans }}"></span> {{ document.rawDocument.filesize|formatBytes }}
112-
{% endif %}
107+
{% if document.filesize > 0 %}
108+
{{ document.filesize|formatBytes }}
109+
{% endif %}
110+
{% if document.rawDocument and document.rawDocument.filesize > 0 %}
111+
<br>
112+
<span class="rz-icon-ri--camera-line" title="{{ 'original.document'|trans }}"></span>
113+
{{ document.rawDocument.filesize|formatBytes }}
113114
{% endif %}
114115
</td>
115116
<td class="mobile-hidden uk-visible-xlarge">{% if document.imageWidth > 0 %}{{ document.imageWidth }}px{% endif %}</td>
@@ -122,7 +123,8 @@
122123
{% endif %}
123124
{% import "@RoadizRozier/macros/rz_badge.html.twig" as rz_badge %}
124125
{{ rz_badge.item({
125-
icon: 'rz-icon-ri--' ~ iconName ~ '-fill',
126+
label: iconName,
127+
icon: 'rz-icon-logo--' ~ iconName,
126128
attributes: {
127129
title: document.embedPlatform|trans|capitalize,
128130
}

0 commit comments

Comments
 (0)