1
0
Fork 0
forked from mirror/pixelfed

Update PostComponent, improve likes modal

This commit is contained in:
Daniel Supernault 2020-03-14 13:06:32 -06:00
parent 329d2f1cc5
commit 664fd2724c
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -405,9 +405,9 @@
hide-footer hide-footer
centered centered
title="Likes" title="Likes"
body-class="list-group-flush p-0"> body-class="list-group-flush py-3 px-0">
<div class="list-group"> <div class="list-group">
<div class="list-group-item border-0" v-for="(user, index) in likes" :key="'modal_likes_'+index"> <div class="list-group-item border-0 py-1" v-for="(user, index) in likes" :key="'modal_likes_'+index">
<div class="media"> <div class="media">
<a :href="user.url"> <a :href="user.url">
<img class="mr-3 rounded-circle box-shadow" :src="user.avatar" :alt="user.username + 's avatar'" width="30px"> <img class="mr-3 rounded-circle box-shadow" :src="user.avatar" :alt="user.username + 's avatar'" width="30px">
@ -418,9 +418,11 @@
{{user.username}} {{user.username}}
</a> </a>
</p> </p>
<p class="text-muted mb-0" style="font-size: 14px"> <p v-if="!user.local" class="text-muted mb-0 text-truncate mr-3" style="font-size: 14px" :title="user.acct" data-toggle="dropdown" data-placement="bottom">
<span class="font-weight-bold">{{user.acct.split('@')[0]}}</span><span class="text-lighter">&commat;{{user.acct.split('@')[1]}}</span>
</p>
<p v-else class="text-muted mb-0 text-truncate" style="font-size: 14px">
{{user.display_name}} {{user.display_name}}
</a>
</p> </p>
</div> </div>
</div> </div>
@ -959,7 +961,6 @@ export default {
this.replyToIndex = index; this.replyToIndex = index;
this.replyingToId = e.id; this.replyingToId = e.id;
this.reply_to_profile_id = e.account.id; this.reply_to_profile_id = e.account.id;
this.replyText = '@' + e.account.username + ' ';
$('textarea[name="comment"]').focus(); $('textarea[name="comment"]').focus();
}, },