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