Hide unknown type attachments, polish the upload preview styling

This commit is contained in:
shpuld 2017-11-20 13:27:45 +02:00
parent 092848b32b
commit 280758f867
3 changed files with 4 additions and 2 deletions

View file

@ -25,7 +25,7 @@
<i class="icon-cancel" @click="clearError"></i>
</div>
<div class="attachments">
<div class="attachment" v-for="file in newStatus.files">
<div class="attachment base03-border" v-for="file in newStatus.files">
<i class="fa icon-cancel" @click="removeMediaFile(file)"></i>
<img class="thumbnail media-upload" :src="file.image" v-if="type(file) === 'image'"></img>
<video v-if="type(file) === 'video'" :src="file.image" controls></video>