fix(about): avatar display problem
This commit is contained in:
parent
8f1f4d443d
commit
668df162f4
@ -246,7 +246,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||
}
|
||||
|
||||
if (Array.isArray(ps.endingCreditMembers)) {
|
||||
set.wellKnownWebsites = ps.endingCreditMembers.filter(Boolean);
|
||||
set.endingCreditMembers = ps.endingCreditMembers.filter(Boolean);
|
||||
}
|
||||
|
||||
if (Array.isArray(ps.urlPreviewDenyList)) {
|
||||
|
@ -133,7 +133,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
<template #label>{{ i18n.ts.credits }}</template>
|
||||
<div :class="$style.contributors">
|
||||
<MkA v-for="user in staffs" :to="`/@${user.username}`" :class="$style.contributor">
|
||||
<MkAvatar :user="user" :class="$style.contributorAvatar" :alt="`Profile image of @${user.username}@oscar.surf`"/>
|
||||
<MkAvatar :user="user" :class="$style.contributorAvatar"/>
|
||||
<span :class="$style.contributorUsername">@{{ user.username }}
|
||||
<span :class="$style.contributorClient">
|
||||
<span :class="instanceColor">{{ instance.name }}</span>
|
||||
@ -141,7 +141,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
</span>
|
||||
</MkA>
|
||||
<MkA v-if="$i !== null" :to="`/@${$i.username}`" :class="$style.contributor">
|
||||
<MkAvatar :user="$i" :class="$style.contributorAvatar" :alt="`Profile image of @${$i.username}@oscar.surf`"/>
|
||||
<MkAvatar :user="$i" :class="$style.contributorAvatar"/>
|
||||
<span :class="$style.contributorUsername">{{ `@${$i.username}` }}
|
||||
<span :class="$style.contributorClient">
|
||||
<span :class="$style.thankYou">{{ i18n.ts.thankYou }}</span>
|
||||
@ -150,7 +150,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
</MkA>
|
||||
<MkA v-else to="/about" :class="$style.contributor">
|
||||
<img src="/static-assets/avatar.png" :class="$style.contributorAvatar" alt="Misskey default profile image">
|
||||
<span :class="$style.contributorUsername">Visitor
|
||||
<span :class="$style.contributorUsername">Explorer
|
||||
<span :class="$style.contributorClient">
|
||||
<span :class="$style.visitor">{{ i18n.ts.timeWillCome }}</span>
|
||||
</span>
|
||||
@ -256,6 +256,9 @@ definePageMetadata(() => ({
|
||||
</script>
|
||||
|
||||
<style lang="scss" module>
|
||||
$bodyTitleHieght: 18px;
|
||||
$bodyInfoHieght: 16px;
|
||||
|
||||
.banner {
|
||||
text-align: center;
|
||||
border-radius: 10px;
|
||||
@ -353,8 +356,9 @@ definePageMetadata(() => ({
|
||||
}
|
||||
|
||||
.contributorAvatar {
|
||||
width: 30px;
|
||||
border-radius: 100%;
|
||||
display: block;
|
||||
width: ($bodyTitleHieght + $bodyInfoHieght);
|
||||
height: ($bodyTitleHieght + $bodyInfoHieght);
|
||||
}
|
||||
|
||||
.contributorUsername {
|
||||
|
Loading…
Reference in New Issue
Block a user