From 3c63116fe78f4455a60f50940ceb61f134ecad02 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sun, 4 Jul 2021 21:21:53 +0200 Subject: [PATCH] [ticket/14771] Add classes and clean up audio attachment HTML PHPBB3-14771 --- .../styles/prosilver/template/attachment.html | 22 ++++++++++++++----- phpBB/styles/prosilver/theme/content.css | 6 ++++- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/phpBB/styles/prosilver/template/attachment.html b/phpBB/styles/prosilver/template/attachment.html index 0fc9972eb1..ceeea21d24 100644 --- a/phpBB/styles/prosilver/template/attachment.html +++ b/phpBB/styles/prosilver/template/attachment.html @@ -30,11 +30,23 @@ {% if _file.S_AUDIO_FILE %} -
-
- {% if _file.COMMENT %}
{{ _file.COMMENT }}
{% endif %} -
{% if _file.UPLOAD_ICON %}{{ _file.UPLOAD_ICON }} {% endif %}{{ _file.DOWNLOAD_NAME }} ({{ _file.FILESIZE }} {{ _file.SIZE_LANG }}) {{ _file.L_DOWNLOAD_COUNT }}
-
+
+
+ +
+ {% if _file.COMMENT %} +
{{ _file.COMMENT }}
+ {% endif %} +
+ {% if _file.UPLOAD_ICON %} + {{ _file.UPLOAD_ICON }} + {% endif %} + {{ _file.DOWNLOAD_NAME }} + ({{ _file.FILESIZE }} {{ _file.SIZE_LANG }}) {{ _file.L_DOWNLOAD_COUNT }} +
+
{% endif %} diff --git a/phpBB/styles/prosilver/theme/content.css b/phpBB/styles/prosilver/theme/content.css index 1313e6b604..5b795815a2 100644 --- a/phpBB/styles/prosilver/theme/content.css +++ b/phpBB/styles/prosilver/theme/content.css @@ -682,7 +682,11 @@ dl.thumbnail dt a:hover img { border: 1px solid transparent; } -audio.file-audio-controls { +.c-file-comment { + font-style: italic; +} + +.c-file-audio-controls { max-width: 100%; }