aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_card
diff options
context:
space:
mode:
authorHJ <spam@hjkos.com>2018-12-18 19:48:05 +0000
committerHJ <spam@hjkos.com>2018-12-18 19:48:05 +0000
commit562c68a51c9746650fabfc5c641816396439c791 (patch)
tree327b6e195cb9820213dd838384353beb22e99f6b /src/components/user_card
parentf62ff2d894d87c7e9c200687eb2a91bcb111e7e1 (diff)
parent81c83566cd8a9bf09b568264e289591c52fbca0d (diff)
Merge branch 'user-profile-overhault' into 'develop'
Small refactor for followers/friends, change display to use tabs instead of "leaky brains" Closes #111 See merge request pleroma/pleroma-fe!427
Diffstat (limited to 'src/components/user_card')
-rw-r--r--src/components/user_card/user_card.js4
-rw-r--r--src/components/user_card/user_card.vue10
2 files changed, 12 insertions, 2 deletions
diff --git a/src/components/user_card/user_card.js b/src/components/user_card/user_card.js
index ea893567..f0fff335 100644
--- a/src/components/user_card/user_card.js
+++ b/src/components/user_card/user_card.js
@@ -1,4 +1,5 @@
import UserCardContent from '../user_card_content/user_card_content.vue'
+import StillImage from '../still-image/still-image.vue'
import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator'
const UserCard = {
@@ -13,7 +14,8 @@ const UserCard = {
}
},
components: {
- UserCardContent
+ UserCardContent,
+ StillImage
},
computed: {
currentUser () { return this.$store.state.users.currentUser }
diff --git a/src/components/user_card/user_card.vue b/src/components/user_card/user_card.vue
index 0f163e36..cf69606d 100644
--- a/src/components/user_card/user_card.vue
+++ b/src/components/user_card/user_card.vue
@@ -1,7 +1,7 @@
<template>
<div class="card">
<a href="#">
- <img @click.prevent="toggleUserExpanded" class="avatar" :src="user.profile_image_url">
+ <StillImage @click.prevent="toggleUserExpanded" class="avatar" :src="user.profile_image_url"/>
</a>
<div class="usercard" v-if="userExpanded">
<user-card-content :user="user" :switcher="false"></user-card-content>
@@ -41,6 +41,14 @@
margin-top:0.0em;
text-align: left;
width: 100%;
+ .user-name {
+ img {
+ object-fit: contain;
+ height: 16px;
+ width: 16px;
+ vertical-align: middle;
+ }
+ }
}
.follows-you {