fix(排名): 桌面上条太短,压在上面的「前一名」「进步最大」把条整个盖住;标签从条上拿掉,进步最大改成涨跌那一格的橙色徽章

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
xuyueandClaude Opus 5.5 committed 2026-10-10 13:09:02 +08:00
1 parent 1330fc49af
commit 8b8a9d89f0
2 files changed
+34 -39

No files matched your search

+18 -5
View File
@@ -432,11 +432,14 @@ async function restore(userId: number) {
<b>{{ title }}</b>
<span class="muted">{{ subtitle }}</span>
<div class="spacer" />
<span v-if="!teacher && me" class="legend">
<span v-if="meListed"><i :style="{ background: palette.me }" />你</span>
<span v-if="board.ahead"><i :style="{ background: palette.chase }" />前一名</span>
<span v-if="board.behind"><i :style="{ background: palette.threat }" />后一名</span>
<span v-if="mateClass"><i :style="{ background: palette.mate }" />你们班</span>
<span v-if="(!teacher && me) || hot" class="legend">
<template v-if="!teacher && me">
<span v-if="meListed"><i :style="{ background: palette.me }" />你</span>
<span v-if="board.ahead"><i :style="{ background: palette.chase }" />前一名</span>
<span v-if="board.behind"><i :style="{ background: palette.threat }" />后一名</span>
<span v-if="mateClass"><i :style="{ background: palette.mate }" />你们班</span>
</template>
<span v-if="hot"><b class="hot-chip">↑</b>进步最大</span>
</span>
</div>
<RankPodium
@@ -759,6 +762,16 @@ async function restore(userId: number) {
gap: 4px;
}
/* 和赛道里涨跌那一格的徽章同一个样子 */
.legend .hot-chip {
font-size: 12px;
color: #ffffff;
background: #c76a12;
border-radius: 3px;
padding: 0 4px;
line-height: 16px;
}
.legend i {
width: 14px;
height: 8px;