From cdc9ac9d271803196003defe23fe7aca3d6f7e0e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=EF=BC=81=E9=98=B3=E4=BB=94?= <15836909675@163.com>
Date: Mon, 5 Sep 2022 10:15:40 +0800
Subject: [PATCH] no message
---
src/view/pc/rankList.vue | 19 ++++++++++++++++++-
src/view/wap/rankList.vue | 12 +++++++++++-
2 files changed, 29 insertions(+), 2 deletions(-)
diff --git a/src/view/pc/rankList.vue b/src/view/pc/rankList.vue
index cbee0e1..b9ce36f 100644
--- a/src/view/pc/rankList.vue
+++ b/src/view/pc/rankList.vue
@@ -18,7 +18,7 @@
全国
-->
{cityFlag = val}" @command="dropdownFn" :hide-on-click="true">
- 地区:{{city}}
+ 地区:{{city}}
{{it}}
@@ -120,6 +120,12 @@ export default {
height: 36px;
text-align: center;
color: #77C0FF;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ display: -webkit-box;
+ -webkit-line-clamp: 1;
+ -webkit-box-orient: vertical;
+ word-break: break-all;
&:focus{
background: #2E4974;
}
@@ -194,6 +200,17 @@ export default {
max-width: 200px;
font-size: 16px;
color:#77C0FF ;
+ span{
+ overflow: hidden;
+ text-overflow: ellipsis;
+ display: -webkit-box;
+ -webkit-line-clamp: 1;
+ -webkit-box-orient: vertical;
+ word-break: break-all;
+ }
+ &>span:nth-child(1){
+ width: 70px;
+ }
cursor: pointer;
img {
width: 18px;
diff --git a/src/view/wap/rankList.vue b/src/view/wap/rankList.vue
index d864a41..13990ec 100644
--- a/src/view/wap/rankList.vue
+++ b/src/view/wap/rankList.vue
@@ -6,7 +6,7 @@
@@ -153,14 +153,24 @@ export default {
font-size: 14px;
font-weight: 500;
color: #b2bccf;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ display: -webkit-box;
+ -webkit-line-clamp: 1;
+ -webkit-box-orient: vertical;
+ word-break: break-all;
}
.clear{
cursor: pointer;
}
p {
+ // flex: 1;
display: flex;
align-items: center;
max-width: 150px;
+ &>span:nth-child(1){
+ width: 50px;
+ }
&.text img{
width: 14px;
height: 14px;
--
GitLab