Show full actor address in ProfileListItem component
This commit is contained in:
parent
d440b91033
commit
d8a0103115
1 changed files with 5 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
<avatar :profile="profile"></avatar>
|
||||
<div class="name">
|
||||
<div class="display-name">{{ profile.display_name || profile.username }}</div>
|
||||
<div class="username">@{{ profile.acct }}</div>
|
||||
<div class="actor-address">@{{ getActorAddress(profile) }}</div>
|
||||
</div>
|
||||
</router-link>
|
||||
</template>
|
||||
|
@ -13,6 +13,9 @@
|
|||
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||
import { Profile } from "@/api/users"
|
||||
import Avatar from "@/components/Avatar.vue"
|
||||
import { useInstanceInfo } from "@/store/instance"
|
||||
|
||||
const { getActorAddress } = useInstanceInfo()
|
||||
|
||||
const props = defineProps<{
|
||||
profile: Profile,
|
||||
|
@ -41,7 +44,7 @@ const props = defineProps<{
|
|||
color: $text-color;
|
||||
}
|
||||
|
||||
.username {
|
||||
.actor-address {
|
||||
color: $secondary-text-color;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue