fix(about): instance color picking
This commit is contained in:
parent
186b80c669
commit
b891c94423
1 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||
};
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue