[ticket/14771] Add CSS class for audio controls

PHPBB3-14771
This commit is contained in:
Marc Alexander 2021-07-01 20:52:55 +02:00
parent 11fb872e33
commit cf6d6d3445
No known key found for this signature in database
GPG key ID: 50E0D2423696F995
2 changed files with 5 additions and 1 deletions

View file

@ -35,7 +35,7 @@
{% if _file.COMMENT %}<dd><em>{{ _file.COMMENT }}</em></dd>{% endif %}
<dd>{{ _file.DOWNLOAD_NAME }} ({{ _file.FILESIZE }} {{ _file.SIZE_LANG }}) {{ _file.L_DOWNLOAD_COUNT }}</dd>
<dd>
<audio controls="controls" preload="none" style="max-width:100%;width:360px">
<audio class="file-audio-controls" controls="controls" preload="none">
<source src="{{ _file.U_DOWNLOAD_LINK }}" type="{{ _file.MIMETYPE }}">
</audio>
</dd>

View file

@ -682,6 +682,10 @@ dl.thumbnail dt a:hover img {
border: 1px solid transparent;
}
audio.file-audio-controls {
max-width: 100%;
}
/* Post poll styles
---------------------------------------- */
fieldset.polls {