From a84c4570ba928f341604d9039a05b9507882bfbe Mon Sep 17 00:00:00 2001 From: OuYingJun1024 <1034284404@qq.com> Date: Sun, 14 Jun 2026 15:02:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(admin-web):=20=E7=94=A8=E6=88=B7=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=88=97=E5=AE=BD=E2=80=94=E2=80=94=E6=89=8B=E6=9C=BA?= =?UTF-8?q?=E5=8F=B7/=E6=98=B5=E7=A7=B0=E5=AE=9A=E5=AE=BD,=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E5=88=97=E5=8A=A0=E5=AE=BD=E9=98=B2=E6=8D=A2=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 手机号/昵称原无 width,宽屏下吃满剩余空间显得失衡;操作列 fixed 230px 装不下 super_admin 的 5 个链接(详情/调金币/调现金/封禁/关调试链接)→ 换行。 - 手机号 width 130、昵称 width 150 + ellipsis(超长省略) - 操作列 230→300 + Space wrap={false},5 链接稳定一行 - scroll.x 1100→1160 同步 Co-Authored-By: Claude Opus 4.8 (1M context) --- src/app/(main)/users/page.tsx | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/app/(main)/users/page.tsx b/src/app/(main)/users/page.tsx index 0ee25f3..1c7c788 100644 --- a/src/app/(main)/users/page.tsx +++ b/src/app/(main)/users/page.tsx @@ -190,8 +190,14 @@ export default function UsersPage() { const columns: ColumnsType = [ { title: 'ID', dataIndex: 'id', width: 80, sorter: true, sortOrder: sortOrderOf('id') }, - { title: '手机号', dataIndex: 'phone' }, - { title: '昵称', dataIndex: 'nickname', render: (v: string | null) => v || '-' }, + { title: '手机号', dataIndex: 'phone', width: 130 }, + { + title: '昵称', + dataIndex: 'nickname', + width: 150, + ellipsis: true, + render: (v: string | null) => v || '-', + }, { title: '渠道', dataIndex: 'register_channel', width: 90 }, { title: '状态', @@ -219,9 +225,9 @@ export default function UsersPage() { title: '操作', key: 'op', fixed: 'right', - width: 230, + width: 300, render: (_: unknown, u: UserListItem) => ( - e.stopPropagation()}> + e.stopPropagation()}> router.push(`/users/${u.id}`)}>详情 {canCoins && setCoinUser(u)}>调金币} {canCoins && setCashUser(u)}>调现金} @@ -334,7 +340,7 @@ export default function UsersPage() { dataSource={items} loading={loading} pagination={false} - scroll={{ x: 1100 }} + scroll={{ x: 1160 }} onChange={onTableChange} />