Skip to content

Commit

Permalink
リスト一覧でユーザーアイコンをクリックしてもユーザー情報に飛ばないように
Browse files Browse the repository at this point in the history
  • Loading branch information
4ster1sk committed Sep 2, 2024
1 parent 29c2198 commit 3775f9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/frontend/src/components/MkAvatars.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<template>
<div>
<div v-for="user in users" :key="user.id" style="display:inline-block;width:32px;height:32px;margin-right:8px;">
<MkAvatar :user="user" style="width:32px; height:32px;" indicator link preview/>
<MkAvatar :user="user" style="width:32px; height:32px;" indicator :link="enableLink" preview/>
</div>
<div v-if="users.length > 0 && userIds.length > limit" style="display: inline-block;">...</div>
</div>
Expand All @@ -20,8 +20,10 @@ import { misskeyApi } from '@/scripts/misskey-api.js';
const props = withDefaults(defineProps<{
userIds: string[];
limit?: number;
enableLink?: boolean;
}>(), {
limit: Infinity,
enableLink: true,
});

const users = ref<Misskey.entities.UserLite[]>([]);
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/my-lists/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<div v-if="items.length > 0" class="_gaps">
<MkA v-for="list in items" :key="list.id" class="_panel" :class="$style.list" :to="`/timeline/list/${ list.id }`">
<div style="margin-bottom: 4px;">{{ list.name }} <span :class="$style.nUsers">({{ i18n.tsx.nUsers({ n: `${list.userIds.length}/${$i.policies['userEachUserListsLimit']}` }) }})</span></div>
<MkAvatars :userIds="list.userIds" :limit="10"/>
<MkAvatars :userIds="list.userIds" :limit="10" :enableLink="false"/>
</MkA>
</div>
</div>
Expand Down

0 comments on commit 3775f9e

Please sign in to comment.