From 2eea1fb2138aec8a0a61ffec3add8d47ca279b11 Mon Sep 17 00:00:00 2001 From: jinhhanhan <1683105490@qq.com> Date: Fri, 28 Nov 2025 17:49:25 +0800 Subject: [PATCH 1/2] =?UTF-8?q?chore:=E5=9C=A8Desktop(touch)=E4=B8=8A?= =?UTF-8?q?=E9=BC=A0=E6=A0=87=E5=8F=AF=E4=BB=A5=E6=8B=96=E5=8A=A8=E5=A5=96?= =?UTF-8?q?=E9=87=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/BattleRanking.vue | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/views/BattleRanking.vue b/src/views/BattleRanking.vue index c07203f..5ebb2b3 100644 --- a/src/views/BattleRanking.vue +++ b/src/views/BattleRanking.vue @@ -1923,6 +1923,28 @@ onUnmounted(() => { position: relative; margin-top: 0.8rem; max-height: 420px; + // 只对左侧战区的.rank-table生效(通过父容器限定) + .team-rankings-container & { + -ms-overflow-style: none; /* IE/Edge 隐藏 */ + scrollbar-width: none; /* Firefox 隐藏 */ + } + // Chrome/Safari 隐藏左侧滚动条(伪元素必须单独写) + .team-rankings-container &::-webkit-scrollbar { + display: none !important; + width: 0 !important; + } + + // ========== 新增:右侧英雄排名滚动条保留原样 ========== + .individual-rankings-container & { + -ms-overflow-style: auto; /* 恢复IE/Edge默认 */ + scrollbar-width: auto; /* 恢复Firefox默认 */ + } + // Chrome/Safari 恢复右侧滚动条 + .individual-rankings-container &::-webkit-scrollbar { + display: block !important; + width: 6px !important; // 恢复默认滚动条宽度 + } + } .table-header { @@ -2606,4 +2628,12 @@ onUnmounted(() => { transition: transform 0.2s ease; } } +.team-rankings-container .rank-table { + -ms-overflow-style: none !important; + scrollbar-width: none !important; +} +.team-rankings-container .rank-table::-webkit-scrollbar { + display: none !important; + width: 0 !important; +} \ No newline at end of file From bc62fa197b76b6b26ee50c7f5f34c4386c09282e Mon Sep 17 00:00:00 2001 From: jinhhanhan <1683105490@qq.com> Date: Sat, 29 Nov 2025 11:46:08 +0800 Subject: [PATCH 2/2] =?UTF-8?q?chore=EF=BC=9A=E6=94=B9=E5=8A=A8=E4=BA=86?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/BattleRanking.vue | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/views/BattleRanking.vue b/src/views/BattleRanking.vue index 7193d7e..df79522 100644 --- a/src/views/BattleRanking.vue +++ b/src/views/BattleRanking.vue @@ -49,10 +49,6 @@
总战绩 - 总战绩
@@ -1413,7 +1409,6 @@ onUnmounted(() => { @media (max-width: 768px) { .total-score-total-image { - width: 280px !important; /* 调整总战绩图片大小,覆盖内联样式 */ width: 340px !important; /* 调整总战绩图片大小,覆盖内联样式 */ } @@ -1928,7 +1923,6 @@ onUnmounted(() => { position: relative; margin-top: 0.8rem; max-height: 420px; - max-height: 420px; // 只对左侧战区的.rank-table生效(通过父容器限定) .team-rankings-container & { -ms-overflow-style: none; /* IE/Edge 隐藏 */ @@ -2107,7 +2101,6 @@ onUnmounted(() => { } .score-value { - font-size: calc(var(--individual-champion-font-size, 5rem) * 2); font-size: calc(var(--individual-champion-font-size, 6rem) * 2); font-weight: bold; color: #fff2c4;