Style properly usernames without tooltips

This commit is contained in:
Tusooa Zhu 2022-01-10 01:37:20 -05:00
parent 1d4b1b296e
commit 95007059d1
No known key found for this signature in database
GPG Key ID: 7B467EDE43A08224
2 changed files with 9 additions and 8 deletions

View File

@ -27,7 +27,7 @@
user-select: all;
}
.short {
.short.-with-tooltip {
user-select: none;
}
@ -56,7 +56,7 @@
}
&.-striped {
& .userName,
& .shortName,
& .full {
background-image:
repeating-linear-gradient(
@ -70,14 +70,14 @@
}
&.-solid {
& .userName,
& .shortName,
& .full {
background-image: linear-gradient(var(--____highlight-tintColor2), var(--____highlight-tintColor2));
}
}
&.-side {
& .userName,
& .shortName,
& .userNameFull {
box-shadow: 0 -5px 3px -4px inset var(--____highlight-solidColor);
}

View File

@ -19,18 +19,19 @@
>
<a
class="short button-unstyled"
:class="{ '-with-tooltip': shouldShowTooltip }"
:href="url"
@click.prevent="onClick"
>
<!-- eslint-disable vue/no-v-html -->
<FAIcon
<span
class="shortName"
><FAIcon
v-if="useAtIcon"
size="sm"
icon="at"
class="at"
/><span
class="shortName"
>{{ !useAtIcon ? '@' : '' }}<span
/>{{ !useAtIcon ? '@' : '' }}<span
class="userName"
v-html="userName"
/><span