From ecb4240d8d7469de78fba1b0a5c16e2d2d41cc11 Mon Sep 17 00:00:00 2001 From: Xwen <929716663@qq.com> Date: Sun, 7 Jan 2024 22:31:52 +0800 Subject: [PATCH] =?UTF-8?q?perf:=E4=BC=98=E5=8C=96=E6=96=87=E7=AB=A0?= =?UTF-8?q?=E5=8D=A1=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Yi.Bbs.Vue3/src/components/AvatarInfo.vue | 2 +- Yi.Bbs.Vue3/src/components/DisscussCard.vue | 132 ++++++++---------- Yi.Bbs.Vue3/src/components/InfoCard.vue | 2 +- .../src/components/UserInfoCard/index.vue | 2 +- Yi.Bbs.Vue3/src/views/Article.vue | 20 +-- .../home/components/RecommendFriend/index.vue | 6 +- 6 files changed, 76 insertions(+), 88 deletions(-) diff --git a/Yi.Bbs.Vue3/src/components/AvatarInfo.vue b/Yi.Bbs.Vue3/src/components/AvatarInfo.vue index b969f3ec..213c74c7 100644 --- a/Yi.Bbs.Vue3/src/components/AvatarInfo.vue +++ b/Yi.Bbs.Vue3/src/components/AvatarInfo.vue @@ -155,7 +155,6 @@ const getStatusInfo = (type) => { .info { flex: 1; - margin-top: 0.6rem; margin-left: 1rem; } @@ -171,6 +170,7 @@ const getStatusInfo = (type) => { flex: 1; display: flex; justify-content: space-between; + align-items: center; } .avatar-left, diff --git a/Yi.Bbs.Vue3/src/components/DisscussCard.vue b/Yi.Bbs.Vue3/src/components/DisscussCard.vue index 2410c510..a3a7fd9f 100644 --- a/Yi.Bbs.Vue3/src/components/DisscussCard.vue +++ b/Yi.Bbs.Vue3/src/components/DisscussCard.vue @@ -1,73 +1,50 @@ diff --git a/Yi.Bbs.Vue3/src/views/home/components/RecommendFriend/index.vue b/Yi.Bbs.Vue3/src/views/home/components/RecommendFriend/index.vue index b8b8790a..8abe08d5 100644 --- a/Yi.Bbs.Vue3/src/views/home/components/RecommendFriend/index.vue +++ b/Yi.Bbs.Vue3/src/views/home/components/RecommendFriend/index.vue @@ -81,10 +81,12 @@ const userImageSrc = computed(() => { display: flex; justify-content: space-around; .left { + display: flex; + align-items: center; flex: 1; .icon { - width: 40px; - height: 40px; + width: 30px; + height: 30px; img { width: 100%; height: 100%;