diff options
| author | Tusooa Zhu <tusooa@kazv.moe> | 2022-01-10 01:16:33 -0500 |
|---|---|---|
| committer | Tusooa Zhu <tusooa@kazv.moe> | 2022-01-29 16:57:59 -0500 |
| commit | 1d4b1b296e8ee37f119f419df49791d99fef4774 (patch) | |
| tree | f2062ff46f28bb41a63802fef32184c9811d42de /src/components/mention_link/mention_link.vue | |
| parent | 76547fe66d1771f5bff732a34b0547f890f4621a (diff) | |
Add pref for whether to display full user names and tooltips
Diffstat (limited to 'src/components/mention_link/mention_link.vue')
| -rw-r--r-- | src/components/mention_link/mention_link.vue | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/components/mention_link/mention_link.vue b/src/components/mention_link/mention_link.vue index f633bf50..fe16cbf5 100644 --- a/src/components/mention_link/mention_link.vue +++ b/src/components/mention_link/mention_link.vue @@ -28,10 +28,16 @@ size="sm" icon="at" class="at" - /><span class="shortName">{{ !useAtIcon ? '@' : '' }}<span - class="userName" - v-html="userName" - /></span> + /><span + class="shortName" + >{{ !useAtIcon ? '@' : '' }}<span + class="userName" + v-html="userName" + /><span + v-if="shouldShowFullUserName" + class="serverName" + v-html="'@' + serverName" + /></span> <span v-if="isYou" class="you" @@ -39,7 +45,7 @@ <!-- eslint-enable vue/no-v-html --> </a> <span - v-if="userName !== userNameFull" + v-if="shouldShowTooltip" class="full popover-default" :class="[highlightType]" > |
