fix(about): instance color picking
All checks were successful
Publish Docker Image (Misskey) TeamCity build finished

This commit is contained in:
オスカー、 2024-11-27 18:33:20 +09:00
parent 186b80c669
commit b891c94423
Signed by: SWREI
GPG Key ID: 139D6573F92DA9F7

View File

@ -136,7 +136,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkAvatar :user="user" :class="$style.contributorAvatar"/>
<span :class="$style.contributorUsername">@{{ user.username }}
<span :class="$style.contributorClient">
<span :class="instanceColor">{{ instance.name }}</span>
<span :style="instanceColor">{{ instance.name }}</span>
</span>
</span>
</MkA>
@ -216,8 +216,9 @@ const stats = ref<Misskey.entities.StatsResponse | null>(null);
const tab = ref(props.initialTab);
const staffs = ref<Misskey.entities.User[]>([]);
const instanceColor = computed(() => {
if (!instance.themeColor) return null;
return {
color: `${instance.themeColor}`,
color: instance.themeColor,
};
});