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)`)