-
+
{{ u.username }}
{{ u.introduction }}
@@ -41,9 +48,7 @@ const handleUserClick = (user) => {
.user-avatar {
width: 50px;
height: 50px;
- border-radius: 50%;
flex-shrink: 0;
- object-fit: cover;
}
.user-info {
display: flex;
diff --git a/frontend_nuxt/pages/index.vue b/frontend_nuxt/pages/index.vue
index a6327dc61..c4565bff5 100644
--- a/frontend_nuxt/pages/index.vue
+++ b/frontend_nuxt/pages/index.vue
@@ -85,14 +85,15 @@
-
-
-
+ :user-id="member.id"
+ :avatar="member.avatar"
+ :username="member.username"
+ :width="25"
+ />
@@ -291,7 +292,11 @@ const {
description: p.content,
category: p.category,
tags: p.tags || [],
- members: (p.participants || []).map((m) => ({ id: m.id, avatar: m.avatar })),
+ members: (p.participants || []).map((m) => ({
+ id: m.id,
+ avatar: m.avatar,
+ username: m.username,
+ })),
comments: p.commentCount,
views: p.views,
rssExcluded: p.rssExcluded || false,
@@ -333,7 +338,11 @@ const fetchNextPage = async () => {
description: p.content,
category: p.category,
tags: p.tags || [],
- members: (p.participants || []).map((m) => ({ id: m.id, avatar: m.avatar })),
+ members: (p.participants || []).map((m) => ({
+ id: m.id,
+ avatar: m.avatar,
+ username: m.username,
+ })),
comments: p.commentCount,
views: p.views,
rssExcluded: p.rssExcluded || false,
@@ -383,7 +392,6 @@ watch([selectedCategory, selectedTags], ([newCategory, newTags]) => {
selectedCategoryGlobal.value = newCategory
selectedTagsGlobal.value = newTags
})
-