From 7fb210599fef50d02334c86e32779fbebcb4e761 Mon Sep 17 00:00:00 2001 From: jinhhanhan <1683105490@qq.com> Date: Fri, 28 Nov 2025 17:49:25 +0800 Subject: [PATCH] =?UTF-8?q?chore:=E5=9C=A8Desktop(touch)=E4=B8=8A=E9=BC=A0?= =?UTF-8?q?=E6=A0=87=E5=8F=AF=E4=BB=A5=E6=8B=96=E5=8A=A8=E5=A5=96=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 -- 2.49.1