From f4eb31570ec989e301b71e46735a349409464e35 Mon Sep 17 00:00:00 2001
From: Xwen <929716663@qq.com>
Date: Mon, 25 Dec 2023 23:06:19 +0800
Subject: [PATCH] =?UTF-8?q?perf:=E4=BC=98=E5=8C=96infoCard=E7=BB=84?=
=?UTF-8?q?=E4=BB=B6=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Yi.Bbs.Vue3/src/components/InfoCard.vue | 22 ++++++++-------
Yi.Bbs.Vue3/src/views/home/Index.vue | 14 ++++++++--
.../home/components/PointsRanking/index.vue | 27 ++++++++++++++-----
3 files changed, 45 insertions(+), 18 deletions(-)
diff --git a/Yi.Bbs.Vue3/src/components/InfoCard.vue b/Yi.Bbs.Vue3/src/components/InfoCard.vue
index 88770c50..e3c178e7 100644
--- a/Yi.Bbs.Vue3/src/components/InfoCard.vue
+++ b/Yi.Bbs.Vue3/src/components/InfoCard.vue
@@ -1,7 +1,8 @@
@@ -14,15 +15,16 @@ const props = defineProps(["items", "header", "text", "hideDivider"]);
-
-
-
+
@@ -47,5 +49,7 @@ const props = defineProps(["items", "header", "text", "hideDivider"]);
.box-card {
width: 100%;
+ height: v-bind(height);
+ padding-bottom: 10px;
}
diff --git a/Yi.Bbs.Vue3/src/views/home/Index.vue b/Yi.Bbs.Vue3/src/views/home/Index.vue
index 6d515fcf..fcfd94ae 100644
--- a/Yi.Bbs.Vue3/src/views/home/Index.vue
+++ b/Yi.Bbs.Vue3/src/views/home/Index.vue
@@ -73,7 +73,12 @@
-
+
@@ -81,7 +86,12 @@
-
+
diff --git a/Yi.Bbs.Vue3/src/views/home/components/PointsRanking/index.vue b/Yi.Bbs.Vue3/src/views/home/components/PointsRanking/index.vue
index 0787a030..bf040822 100644
--- a/Yi.Bbs.Vue3/src/views/home/components/PointsRanking/index.vue
+++ b/Yi.Bbs.Vue3/src/views/home/components/PointsRanking/index.vue
@@ -11,7 +11,16 @@
{{ pointsData.level }}
- {{ pointsData.userName }}
+
+
+ {{ pointsData.userName }}
+
+
@@ -95,12 +104,16 @@ const userImageSrc = computed(() => {
}
}
.bottom {
- width: 200px;
- color: #252933;
- margin-left: 5px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
+ width: 180px;
+ .name {
+ cursor: pointer;
+ width: 100%;
+ color: #252933;
+ margin-left: 5px;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
}
}
.right {