Audio controls height?

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3909 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-06-19 21:05:34 +00:00
parent d892c9e734
commit 782b5593d5
3 changed files with 7 additions and 5 deletions

View File

@ -126,9 +126,11 @@ Vue.component('tf-message', {
<div v-html="this.markdown(content_json.text)"></div>
<span v-for="mention in content_json.mentions" v-if="mention.link && typeof(mention.link) == 'string' && mention.link.startsWith('&')">
<a v-if="mention.type == 'application/tildefriends'" :href="'/' + mention.link + '/'" target="_top">{{mention.name}}</a>
<audio v-else-if="mention.name && mention.name.startsWith('audio:')" controls>
<source :src="'/' + mention.link + '/view'"></source>
</audio>
<div v-else-if="mention.name && mention.name.startsWith('audio:')">
<audio controls style="height: 32px">
<source :src="'/' + mention.link + '/view'"></source>
</audio>
</div>
<img v-else class="md-elevation-4" style="margin: 4px; max-width: 320px; max-height: 240px" :src="'/' + mention.link + '/view'" v-on:click="expand_image"></img>
</span>
</div>