1
0
mirror of https://github.com/h3poteto/whalebird-desktop synced 2024-12-23 23:47:57 +01:00

refs #117 Show attachmented images in toot

This commit is contained in:
AkiraFukushima 2018-03-24 23:55:23 +09:00
parent adfbaed6cf
commit aff2e654b8

View File

@ -13,6 +13,11 @@
</div>
</div>
<div class="content" v-html="message.content" @click.capture.prevent="tootClick"></div>
<div class="attachments">
<div class="media" v-for="media in originalMessage(message).media_attachments">
<img :src="media.preview_url" />
</div>
</div>
<div class="reblogger" v-if="message.reblog !== null">
<icon name="retweet"></icon>
<span class="reblogger-icon">
@ -177,6 +182,15 @@ function findLink (target) {
word-wrap: break-word;
}
.attachments {
.media {
img {
width: 200px;
max-width: 100%;
}
}
}
.reblogger {
color: #909399;