From a1eccb3b1e4a4aa8f370843415eca12507c97323 Mon Sep 17 00:00:00 2001 From: tim Date: Wed, 24 Sep 2025 00:30:23 +0800 Subject: [PATCH] Revert "feat: add BaseUserAvatar and unify avatar usage" This reverts commit efbb83924b2e2d3b713a68e892323fc03f331d1d. --- frontend_nuxt/components/BaseTimeline.vue | 25 ++-- frontend_nuxt/components/BaseUserAvatar.vue | 116 ------------------ frontend_nuxt/components/CommentItem.vue | 15 +-- frontend_nuxt/components/HeaderComponent.vue | 10 +- .../components/PostChangeLogItem.vue | 11 +- frontend_nuxt/components/PostLottery.vue | 22 ++-- frontend_nuxt/components/PostPoll.vue | 12 +- .../components/SearchPersonDropdown.vue | 15 ++- frontend_nuxt/components/UserList.vue | 11 +- frontend_nuxt/pages/index.vue | 33 +++-- frontend_nuxt/pages/message-box/[id].vue | 14 +-- frontend_nuxt/pages/message-box/index.vue | 21 +--- frontend_nuxt/pages/posts/[id]/index.vue | 29 ++--- frontend_nuxt/pages/users/[id].vue | 10 +- frontend_nuxt/utils/notification.js | 10 -- 15 files changed, 91 insertions(+), 263 deletions(-) delete mode 100644 frontend_nuxt/components/BaseUserAvatar.vue diff --git a/frontend_nuxt/components/BaseTimeline.vue b/frontend_nuxt/components/BaseTimeline.vue index f5bb3f7d0..b95d5e422 100644 --- a/frontend_nuxt/components/BaseTimeline.vue +++ b/frontend_nuxt/components/BaseTimeline.vue @@ -3,19 +3,10 @@
- + - - - - - - - - diff --git a/frontend_nuxt/components/CommentItem.vue b/frontend_nuxt/components/CommentItem.vue index be12aaf29..584f0a90b 100644 --- a/frontend_nuxt/components/CommentItem.vue +++ b/frontend_nuxt/components/CommentItem.vue @@ -26,14 +26,10 @@ - {{ comment.parentUserName }} @@ -257,19 +253,16 @@ const submitReply = async (parentUserName, text, clear) => { replyList.push({ id: data.id, userName: data.author.username, - userId: data.author.id, time: TimeManager.format(data.createdAt), avatar: data.author.avatar, medal: data.author.displayMedal, text: data.content, parentUserName: parentUserName, parentUserAvatar: props.comment.avatar, - parentUserId: props.comment.userId, reactions: [], reply: (data.replies || []).map((r) => ({ id: r.id, userName: r.author.username, - userId: r.author.id, time: TimeManager.format(r.createdAt), avatar: r.author.avatar, text: r.content, @@ -401,7 +394,9 @@ const handleContentClick = (e) => { .reply-avatar { width: 20px; height: 20px; + border-radius: 50%; margin-right: 5px; + cursor: pointer; } .reply-icon { diff --git a/frontend_nuxt/components/HeaderComponent.vue b/frontend_nuxt/components/HeaderComponent.vue index 51605425c..0f1176a9f 100644 --- a/frontend_nuxt/components/HeaderComponent.vue +++ b/frontend_nuxt/components/HeaderComponent.vue @@ -70,14 +70,7 @@ @@ -441,6 +434,7 @@ onMounted(async () => { height: 32px; border-radius: 50%; background-color: lightgray; + object-fit: cover; } .dropdown-icon { diff --git a/frontend_nuxt/components/PostChangeLogItem.vue b/frontend_nuxt/components/PostChangeLogItem.vue index 5f0198957..31988452a 100644 --- a/frontend_nuxt/components/PostChangeLogItem.vue +++ b/frontend_nuxt/components/PostChangeLogItem.vue @@ -1,13 +1,12 @@