This commit is contained in:
kakkokari-gtyih 2024-06-03 19:12:25 +09:00
parent 1c35bf32bb
commit 2c0d72fc1b
1 changed files with 7 additions and 1 deletions

View File

@ -8,7 +8,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkLoading v-if="loading"/> <MkLoading v-if="loading"/>
<template v-else-if="user"> <template v-else-if="user">
<div v-if="normalizedShowHeader" :class="$style.userHeader"> <div v-if="normalizedShowHeader" :class="$style.userHeader">
<a :href="`/@${user.username}`" target="_blank" rel="noopener noreferrer"> <a :href="`/@${user.username}`" target="_blank" rel="noopener noreferrer" :class="$style.avatarLink">
<MkAvatar :class="$style.avatar" :user="user"/> <MkAvatar :class="$style.avatar" :user="user"/>
</a> </a>
<div :class="$style.headerTitle"> <div :class="$style.headerTitle">
@ -87,11 +87,17 @@ misskeyApi('users/show', {
} }
.userHeader { .userHeader {
flex-shrink: 0;
padding: 8px 16px; padding: 8px 16px;
display: flex; display: flex;
align-items: center; align-items: center;
gap: var(--margin); gap: var(--margin);
border-bottom: 1px solid var(--divider); border-bottom: 1px solid var(--divider);
overflow: hidden;
.avatarLink {
display: block;
}
.avatar { .avatar {
display: inline-block; display: inline-block;