fix: 🐛 make admin users page properly direct user cards to about page
This commit is contained in:
parent
7ef99069e6
commit
5930c8fc08
2 changed files with 14 additions and 8 deletions
|
@ -5,7 +5,7 @@
|
|||
$style.root,
|
||||
{ yellow: user.isSilenced, red: user.isSuspended, gray: false },
|
||||
]"
|
||||
:to="userPage(user)"
|
||||
:to="props.showAboutPage ? `/user-info/${user.id}` : userPage(user)"
|
||||
>
|
||||
<MkAvatar
|
||||
class="avatar"
|
||||
|
@ -33,9 +33,11 @@ const props = withDefaults(
|
|||
defineProps<{
|
||||
user: misskey.entities.User;
|
||||
withChart?: boolean;
|
||||
showAboutPage?: boolean;
|
||||
}>(),
|
||||
{
|
||||
withChart: true,
|
||||
showAboutPage: false,
|
||||
},
|
||||
);
|
||||
|
||||
|
@ -99,6 +101,12 @@ if (props.withChart) {
|
|||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
// > :global(.moderation) {
|
||||
// display: flex;
|
||||
// gap: 1rem;
|
||||
// margin-right: 1rem;
|
||||
// }
|
||||
}
|
||||
|
||||
> :global(.chart) {
|
||||
|
|
|
@ -100,19 +100,17 @@
|
|||
:pagination="pagination"
|
||||
class="users"
|
||||
>
|
||||
<MkA
|
||||
<MkUserCardMini
|
||||
v-for="user in items"
|
||||
:key="user.id"
|
||||
v-tooltip.mfm="
|
||||
`Last posted: ${new Date(
|
||||
user.updatedAt ? `Last posted: ${new Date(
|
||||
user.updatedAt,
|
||||
).toLocaleString()}`
|
||||
).toLocaleString()}` : 'Never posted'
|
||||
"
|
||||
class="user"
|
||||
:to="`/user-info/${user.id}`"
|
||||
>
|
||||
<MkUserCardMini :user="user" />
|
||||
</MkA>
|
||||
:user="user"
|
||||
:show-about-page="true" />
|
||||
</MkPagination>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue