Skip to content

Commit

Permalink
Fix user display text
Browse files Browse the repository at this point in the history
  • Loading branch information
bkis committed Aug 29, 2024
1 parent 9de1ea5 commit 40e5cce
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Tekst-Web/src/components/user/UserDisplayText.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@ defineProps<{

<template>
<span>
<span v-if="user.name" class="mr-sm">{{ user.name }}</span>
<span v-if="user.affiliation && user.name" class="mr-sm text-small">
({{ user.affiliation }})
</span>
<span v-if="!user.name">@{{ user.username }}</span>
<span v-if="user.affiliation && !user.name" class="ml-sm"> ({{ user.affiliation }}) </span>
<span v-if="user.name">{{ user.name }}</span>
<span v-else>@{{ user.username }}</span>
<span v-if="user.affiliation"> ({{ user.affiliation }}) </span>
</span>
</template>

0 comments on commit 40e5cce

Please sign in to comment.