From 959c326bc9a00f48d180295cacc621bbf9f84c1c Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Mon, 2 Nov 2026 23:51:28 +0800 Subject: [PATCH] =?UTF-8?q?style(=E5=90=8D=E5=AD=97):=20=E5=90=8D=E5=AD=97?= =?UTF-8?q?=E5=88=97=E6=8C=89=E5=8E=BB=E6=8E=89=20ks=20=E5=89=8D=E7=BC=80?= =?UTF-8?q?=E5=90=8E=E7=9A=84=E9=95=BF=E5=BA=A6=E6=94=B6=E7=AA=84=EF=BC=8C?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E7=95=99=E4=B8=80=E5=A4=A7=E5=9D=97=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 原来的定宽是按 ks2312李鑫楠 定的(110~170px),现在名字最长 4 个字(在读的班 423 人里 5 人)。 只放名字的列收到 80px 左右;混着几个班、名字后面还有班号的(全部提交、全服 / 年级排名、 卡点分析没选班时)108px,最宽的「翁鑫叶炫 2312」95px 也放得下。改了提交列表、排名赛道和周榜、 比赛排名和成绩、题单全班情况、数据统计、后台自学情况和卡点分析、请假名单 Co-Authored-By: Claude Opus 5.5 --- .../src/admin/analytics/components/StuckDetail.vue | 10 +++++++--- apps/web/src/admin/learn/ExerciseAttempts.vue | 2 +- apps/web/src/admin/learn/ProblemReaders.vue | 2 +- apps/web/src/admin/learn/index.vue | 5 +++-- apps/web/src/oj/contest/pages/class.vue | 5 +++-- apps/web/src/oj/contest/pages/rank.vue | 3 ++- .../web/src/oj/problemset/components/ClassView.vue | 3 ++- apps/web/src/oj/rank/components/RankTrack.vue | 11 ++++++++--- apps/web/src/oj/rank/components/WeekTop.vue | 3 ++- .../web/src/oj/statistics/components/CodeStats.vue | 3 ++- .../web/src/oj/statistics/components/FlowStats.vue | 3 ++- apps/web/src/oj/submission/list.vue | 14 +++++++++++--- apps/web/src/oj/task/components/LeaveModal.vue | 2 +- apps/web/src/shared/components/UserName.vue | 2 +- 14 files changed, 46 insertions(+), 22 deletions(-) diff --git a/apps/web/src/admin/analytics/components/StuckDetail.vue b/apps/web/src/admin/analytics/components/StuckDetail.vue index c71ff90..4eac263 100644 --- a/apps/web/src/admin/analytics/components/StuckDetail.vue +++ b/apps/web/src/admin/analytics/components/StuckDetail.vue @@ -205,7 +205,7 @@ const links = computed(() => {
交得最多的
- + 交了 {{ row.tries }} 次 {{ gap(row.minutes) }} @@ -243,7 +243,7 @@ const links = computed(() => {
- + 交了 {{ row.tries }} 次 {{ resultName(row.lastResult) }} @@ -450,10 +450,14 @@ const links = computed(() => { font-size: 13px; min-width: 0; } +/* 名字最长 4 个字;没选班(全部班级)时名字后面还有班号(2026-11 去掉 ks 前缀之前是按 ks2312李鑫楠 定的宽) */ .uname { - width: 110px; + width: 80px; flex-shrink: 0; } +.uname.with-class { + width: 108px; +} .ntries { width: 64px; flex-shrink: 0; diff --git a/apps/web/src/admin/learn/ExerciseAttempts.vue b/apps/web/src/admin/learn/ExerciseAttempts.vue index f76c655..077a259 100644 --- a/apps/web/src/admin/learn/ExerciseAttempts.vue +++ b/apps/web/src/admin/learn/ExerciseAttempts.vue @@ -22,7 +22,7 @@ const desktopColumns: DataTableColumn[] = [ { title: '学生', key: 'username', - width: 140, + width: 100, render: (row) => h(UserName, { username: row.username }), }, { diff --git a/apps/web/src/admin/learn/ProblemReaders.vue b/apps/web/src/admin/learn/ProblemReaders.vue index 3211713..65a0c26 100644 --- a/apps/web/src/admin/learn/ProblemReaders.vue +++ b/apps/web/src/admin/learn/ProblemReaders.vue @@ -49,7 +49,7 @@ const desktopColumns: DataTableColumn[] = [ { title: '学生', key: 'username', - width: 150, + width: 100, render: (row) => h(UserName, { username: row.username }), }, { title: '结果', key: 'result', width: 150, render: renderResult }, diff --git a/apps/web/src/admin/learn/index.vue b/apps/web/src/admin/learn/index.vue index bfd1a54..add7dfb 100644 --- a/apps/web/src/admin/learn/index.vue +++ b/apps/web/src/admin/learn/index.vue @@ -503,8 +503,9 @@ onMounted(load) padding-bottom: 6px; border-top: 0; } +/* 名字最长 4 个字,表头「每课打开过」5 个小字也放得下(2026-11 去掉 ks 前缀之前是按 ks2312李鑫楠 定的宽) */ .c-name { - width: 110px; + width: 80px; flex-shrink: 0; white-space: nowrap; overflow: hidden; @@ -756,7 +757,7 @@ onMounted(load) position: sticky; left: 0; z-index: 1; - width: 96px; + width: 72px; margin-left: -16px; padding-left: 16px; background: v-bind('theme.bodyColor'); diff --git a/apps/web/src/oj/contest/pages/class.vue b/apps/web/src/oj/contest/pages/class.vue index d40f4d5..1faecdd 100644 --- a/apps/web/src/oj/contest/pages/class.vue +++ b/apps/web/src/oj/contest/pages/class.vue @@ -267,8 +267,9 @@ function exportGrades() { const success = computed(() => tone('success')) const danger = computed(() => tone('error')) const warning = computed(() => tone('warning')) -const liveColumns = computed(() => `130px 48px repeat(${problems.value.length}, minmax(70px, 96px)) 90px 1fr`) -const gradeColumns = computed(() => `24px 124px 40px 36px repeat(${problems.value.length}, 50px)`) +// 名字列只放名字,最长 4 个字(2026-11 去掉 ks 前缀之前是按 ks2312李鑫楠 定的宽) +const liveColumns = computed(() => `88px 48px repeat(${problems.value.length}, minmax(70px, 96px)) 90px 1fr`) +const gradeColumns = computed(() => `24px 88px 40px 36px repeat(${problems.value.length}, 50px)`)