fix(后台): 用户、题目、比赛、公告、标签几张列表的操作不再收进 ⋯,直接摆在行尾;名字和题目那列不再吃掉整行的空,创建日期不再折成两行

1366 宽的屏上题目列表、比赛列表的按钮都放得下;题目的知识点多于两个时只摆一个加「+N」。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
xuyueandClaude Opus 5.5 committed 2026-10-13 14:29:56 +08:00
1 parent bd3a57468f
commit 6470f56f87
9 files changed
+119 -158

No files matched your search

+4 -2
View File
@@ -96,7 +96,9 @@ const columns: DataTableColumn<AdminUserForm>[] = [
{
title: "用户名",
key: "username",
minWidth: 200,
// 定宽:用户名一般就 ks + 班号 + 两三个字,原来 minWidth 让它把整行剩下的空都吃掉了(用户嫌空太多)。
// 剩下的宽度给最后的操作列,操作直接摆出来
width: 230,
render: (row) => h(UserNameCell, { user: row }),
},
{
@@ -133,7 +135,7 @@ const columns: DataTableColumn<AdminUserForm>[] = [
{
key: "actions",
title: "",
width: 130,
minWidth: 300,
render: (row) =>
h(Actions, {
user: row,