Merge pull request #184 from h3poteto/set-limit

Set limit to attachment height
This commit is contained in:
AkiraFukushima 2018-04-04 19:57:11 +09:00 committed by GitHub
commit 878f6fffab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -17,6 +17,7 @@
<div class="media" v-for="media in originalMessage(message).media_attachments">
<img :src="media.preview_url" @click="openImage(media.url)"/>
</div>
<div class="clearfix"></div>
</div>
<div class="reblogger" v-if="message.reblog !== null" @click="openUser(message.account)">
<icon name="retweet"></icon>
@ -203,10 +204,12 @@ function findLink (target) {
.attachments {
.media {
float: left;
margin-right: 8px;
img {
cursor: zoom-in;
width: 200px;
max-width: 100%;
max-width: 200px;
max-height: 200px;
border-radius: 8px;
}
}