条后面加一道淡色的满宽底槽,读得出「离满格还差多少」;桌面图例补上「做出的题数」, 老师也看得到。手机上条本来就是整行底色,不动。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
eaab224ba8
commit
aba3767fc1
3 files changed
+23
-2
No files matched your search
@@ -432,7 +432,12 @@ async function restore(userId: number) {
|
||||
<b>{{ title }}</b>
|
||||
<span class="muted">{{ subtitle }}</span>
|
||||
<div class="spacer" />
|
||||
<span v-if="(!teacher && me) || hot" class="legend">
|
||||
<span v-if="isDesktop || (!teacher && me) || hot" class="legend">
|
||||
<span v-if="isDesktop"
|
||||
><i class="bar-key" :style="{ background: palette.track }"
|
||||
><i :style="{ background: palette.bar }" /></i
|
||||
>做出的题数</span
|
||||
>
|
||||
<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>
|
||||
@@ -778,6 +783,16 @@ async function restore(userId: number) {
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
/* 条的图例:底槽里一截条,和赛道上的条同一个样子 */
|
||||
.legend .bar-key {
|
||||
width: 24px;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.legend .bar-key i {
|
||||
width: 10px;
|
||||
}
|
||||
|
||||
.empty {
|
||||
padding: 60px 0;
|
||||
text-align: center;
|
||||
|
||||
Reference in new issue
Block a user