Merge pull request #184 from h3poteto/set-limit
Set limit to attachment height
This commit is contained in:
commit
878f6fffab
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue