From ae5dfbfc52f1916b9a1dd266a24a144c2fa2ee05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sat, 22 Feb 2025 17:04:58 +0100 Subject: [PATCH] Improved margins with badges in attachment edit --- .../parts/edit/edit_form_styles.html.twig | 31 +++++++++---------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/templates/parts/edit/edit_form_styles.html.twig b/templates/parts/edit/edit_form_styles.html.twig index 8c1c36bc..609e4081 100644 --- a/templates/parts/edit/edit_form_styles.html.twig +++ b/templates/parts/edit/edit_form_styles.html.twig @@ -155,30 +155,28 @@ {% if attach is not null %} {% if not attach.hasInternal() %} -

-
+
{% trans %}attachment.external_only{% endtrans %} -
+ {% elseif attachment_manager.isInternalFileExisting(attach) %} -

-
- - {{ attach.filename|u.truncate(25, ' ...') }} - +
+
+ {{ attach.filename|u.truncate(25, ' ...') }} +

- - {{ attachment_manager.humanFileSize(attach) }} - -
+
+ {{ attachment_manager.humanFileSize(attach) }} +
+ {% if attach.secure %} -
+
{% trans %}attachment.secure{% endtrans %} -
+ {% endif %} {% if attach.secure and not is_granted('show_private', attach) %} @@ -191,12 +189,11 @@ {% trans %}attachment.view_local{% endtrans %} {% endif %} {% else %} -

-
+
{% trans %}attachment.file_not_found{% endtrans %} -
+ {% endif %} {% endif %}