style(名字): 名字列按去掉 ks 前缀后的长度收窄,不再留一大块空
Deploy / deploy (push) Canceled after 0s

原来的定宽是按 ks2312李鑫楠 定的(110~170px),现在名字最长 4 个字(在读的班 423 人里 5 人)。
只放名字的列收到 80px 左右;混着几个班、名字后面还有班号的(全部提交、全服 / 年级排名、
卡点分析没选班时)108px,最宽的「翁鑫叶炫 2312」95px 也放得下。改了提交列表、排名赛道和周榜、
比赛排名和成绩、题单全班情况、数据统计、后台自学情况和卡点分析、请假名单

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
xuyueandClaude Opus 5.5 committed 2026-11-02 23:51:28 +08:00
1 parent dbb265b02f
commit 959c326bc9
14 files changed
+46 -22

No files matched your search

+11 -3
View File
@@ -756,7 +756,9 @@ function dayBreak(index: number) {
<div class="row" :class="{ on: row.id === selectedId && !isMobile, 'two-line': twoLine }" :data-row-id="row.id" @click="rowClicked(row)">
<template v-if="!twoLine">
<span class="c-time">{{ submissionClockText(row.createTime) }}</span>
<span class="c-user"><UserName :username="row.username" :class-name="mixedClasses ? row.className : null" short-class /></span>
<span class="c-user" :class="{ 'with-class': mixedClasses }"
><UserName :username="row.username" :class-name="mixedClasses ? row.className : null" short-class
/></span>
<span class="c-problem" :title="`${row.problemDisplayId} ${row.problemTitle}`">
<span class="pid">{{ row.problemDisplayId }}</span> {{ row.problemTitle }}
</span>
@@ -786,7 +788,7 @@ function dayBreak(index: number) {
<div class="row" :class="{ on: row.id === selectedId && !isMobile, 'two-line': twoLine }" :data-row-id="row.id" @click="rowClicked(row)">
<template v-if="!twoLine">
<span class="c-time">{{ submissionClockText(row.createTime) }}</span>
<span class="c-user">
<span class="c-user" :class="{ 'with-class': mixedClasses }">
<UserName :username="row.username" :class-name="mixedClasses ? row.className : null" short-class :muted="othersRow(row)" />
</span>
<span class="c-problem" :title="`${row.problemDisplayId} ${row.problemTitle}`">
@@ -1356,13 +1358,19 @@ function dayBreak(index: number) {
border-bottom: 1px solid v-bind('theme.dividerColor');
}
/* 名字最长 4 个字(在读的班 423 人里 5 人),2026-11 去掉 ks 前缀之前是 116px(ks2312李鑫楠)。
混着几个班时名字后面还有班号(李鑫楠 2312) */
.c-user {
width: 116px;
width: 80px;
flex: none;
display: flex;
overflow: hidden;
}
.c-user.with-class {
width: 108px;
}
.c-problem {
flex: 1 1 0;
min-width: 0;