Merge branch 'issue-452-unfollow-button' into 'develop'
#452 - unfollow button issue Closes #452 See merge request pleroma/pleroma-fe!698
This commit is contained in:
commit
e9b58f1af7
@ -4,12 +4,12 @@
|
|||||||
<span class="faint" v-if="!noFollowsYou && user.follows_you">
|
<span class="faint" v-if="!noFollowsYou && user.follows_you">
|
||||||
{{ isMe ? $t('user_card.its_you') : $t('user_card.follows_you') }}
|
{{ isMe ? $t('user_card.its_you') : $t('user_card.follows_you') }}
|
||||||
</span>
|
</span>
|
||||||
<div class="btn-follow" v-if="showFollow && !loggedIn">
|
<div class="follow-card-follow-button" v-if="showFollow && !loggedIn">
|
||||||
<RemoteFollow :user="user" />
|
<RemoteFollow :user="user" />
|
||||||
</div>
|
</div>
|
||||||
<button
|
<button
|
||||||
v-if="showFollow && loggedIn"
|
v-if="showFollow && loggedIn"
|
||||||
class="btn btn-default btn-follow"
|
class="btn btn-default follow-card-follow-button"
|
||||||
@click="followUser"
|
@click="followUser"
|
||||||
:disabled="inProgress"
|
:disabled="inProgress"
|
||||||
:title="requestSent ? $t('user_card.follow_again') : ''"
|
:title="requestSent ? $t('user_card.follow_again') : ''"
|
||||||
@ -24,7 +24,7 @@
|
|||||||
{{ $t('user_card.follow') }}
|
{{ $t('user_card.follow') }}
|
||||||
</template>
|
</template>
|
||||||
</button>
|
</button>
|
||||||
<button v-if="following" class="btn btn-default pressed" @click="unfollowUser" :disabled="inProgress">
|
<button v-if="following" class="btn btn-default follow-card-follow-button pressed" @click="unfollowUser" :disabled="inProgress">
|
||||||
<template v-if="inProgress">
|
<template v-if="inProgress">
|
||||||
{{ $t('user_card.follow_progress') }}
|
{{ $t('user_card.follow_progress') }}
|
||||||
</template>
|
</template>
|
||||||
@ -39,15 +39,17 @@
|
|||||||
<script src="./follow_card.js"></script>
|
<script src="./follow_card.js"></script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.follow-card-content-container {
|
.follow-card {
|
||||||
|
&-content-container {
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
line-height: 1.5em;
|
line-height: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
.btn-follow {
|
&-follow-button {
|
||||||
margin-top: 0.5em;
|
margin-top: 0.5em;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
width: 10em;
|
width: 10em;
|
||||||
|
Loading…
Reference in New Issue
Block a user