1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-20 04:45:31 +02:00
This commit is contained in:
syuilo
2025-08-26 13:58:57 +09:00
parent d6a1046361
commit 05cc8047fa
6 changed files with 50 additions and 29 deletions

View File

@@ -54,7 +54,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</MkFukidashi>
</div>
<div v-if="user.roles.length > 0" class="roles">
<span v-for="role in user.roles" :key="role.id" v-tooltip="role.description" class="role" :style="{ '--color': role.color }">
<span v-for="role in user.roles" :key="role.id" v-tooltip="role.description" class="role" :style="{ '--color': role.color ?? '' }">
<MkA v-adaptive-bg :to="`/roles/${role.id}`">
<img v-if="role.iconUrl" style="height: 1.3em; vertical-align: -22%;" :src="role.iconUrl"/>
{{ role.name }}
@@ -249,7 +249,7 @@ const style = computed(() => {
});
const age = computed(() => {
return calcAge(props.user.birthday);
return props.user.birthday ? calcAge(props.user.birthday) : NaN;
});
function menu(ev: MouseEvent) {