1
0
mirror of https://github.com/h3poteto/whalebird-desktop synced 2025-01-11 08:24:58 +01:00

Merge pull request #125 from h3poteto/iss-117

closes #117 Show attachmented images in toot
This commit is contained in:
AkiraFukushima 2018-03-24 23:57:03 +09:00 committed by GitHub
commit f82365712c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;