Improve mobile layout of user card

This commit is contained in:
taehoon 2019-02-26 11:00:25 -05:00
parent 1fecac9ba6
commit c5519fa587
3 changed files with 28 additions and 8 deletions

View file

@ -1,5 +1,10 @@
<template>
<basic-user-card :user="user">
<template slot="primary-area">
<span class="faint" v-if="!noFollowsYou && user.follows_you">
{{ isMe ? $t('user_card.its_you') : $t('user_card.follows_you') }}
</span>
</template>
<template slot="secondary-area">
<button
v-if="showFollow"
@ -27,11 +32,6 @@
</template>
</button>
</template>
<template slot="tertiary-area">
<span class="faint" v-if="!noFollowsYou && user.follows_you">
{{ isMe ? $t('user_card.its_you') : $t('user_card.follows_you') }}
</span>
</template>
</basic-user-card>
</template>