diff --git a/js/src/components/NavBar.vue b/js/src/components/NavBar.vue index c2be785cf..8ba756588 100644 --- a/js/src/components/NavBar.vue +++ b/js/src/components/NavBar.vue @@ -69,20 +69,34 @@ - + @@ -103,8 +117,8 @@
- {{ identity.displayName() }} - {{ displayName(identity) }} + @{{ identity.preferredUsername }}
@@ -169,7 +183,7 @@ import { IDENTITIES, UPDATE_DEFAULT_ACTOR, } from "../graphql/actor"; -import { IPerson, Person } from "../types/actor"; +import { displayName, IPerson, Person } from "../types/actor"; import { CONFIG } from "../graphql/config"; import { IConfig } from "../types/config.model"; import { ICurrentUser, IUser } from "../types/current-user.model"; @@ -227,6 +241,8 @@ export default class NavBar extends Vue { mobileNavbarActive = false; + displayName = displayName; + @Watch("currentActor") async initializeListOfIdentities(): Promise { if (!this.currentUser.isLoggedIn) return; @@ -309,7 +325,7 @@ nav { cursor: pointer; span { - display: inherit; + display: flex; } &.is-active { @@ -343,5 +359,14 @@ nav { padding-top: 0.2rem; } } + + .identity-wrapper { + display: flex; + + .media-content span { + display: flex; + color: $violet-2; + } + } }