Improve media alt handling and sizing
This commit is contained in:
parent
dff1c2f8c4
commit
fb01521781
|
@ -52,7 +52,7 @@
|
||||||
<icon name="eye" class="hide"></icon>
|
<icon name="eye" class="hide"></icon>
|
||||||
</el-button>
|
</el-button>
|
||||||
<div class="media" v-bind:key="media.preview_url" v-for="media in mediaAttachments(message)">
|
<div class="media" v-bind:key="media.preview_url" v-for="media in mediaAttachments(message)">
|
||||||
<FailoverImg :src="media.preview_url" @click="openImage(media.url, mediaAttachments(message))"/>
|
<FailoverImg :src="media.preview_url" @click="openImage(media.url, mediaAttachments(message))" :title="media.description" />
|
||||||
<el-tag class="media-label" size="mini" v-if="media.type == 'gifv'">GIF</el-tag>
|
<el-tag class="media-label" size="mini" v-if="media.type == 'gifv'">GIF</el-tag>
|
||||||
<el-tag class="media-label" size="mini" v-else-if="media.type == 'video'">VIDEO</el-tag>
|
<el-tag class="media-label" size="mini" v-else-if="media.type == 'video'">VIDEO</el-tag>
|
||||||
</div>
|
</div>
|
||||||
|
@ -589,6 +589,7 @@ export default {
|
||||||
.media {
|
.media {
|
||||||
float: left;
|
float: left;
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
|
margin-bottom: 4px;
|
||||||
width: 200px;
|
width: 200px;
|
||||||
height: 200px;
|
height: 200px;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue