diff --git a/web/frontend/src/pages/AccountsPage.tsx b/web/frontend/src/pages/AccountsPage.tsx index d710720..6e75c0d 100644 --- a/web/frontend/src/pages/AccountsPage.tsx +++ b/web/frontend/src/pages/AccountsPage.tsx @@ -9,7 +9,7 @@ import type { TableProps } from 'antd'; import { ImportOutlined, DeleteOutlined, TagOutlined, FilterOutlined, EyeOutlined, EyeInvisibleOutlined } from '@ant-design/icons'; import { accountApi, type AccountItem, type BasicSummary } from '../api/modules'; import { usePermissions } from '../hooks/usePermissions'; -import { formatTime } from '../utils/time'; +import { formatTimeShort } from '../utils/time'; import { getErrorMessage } from '../utils/error'; const TAG_COLORS = [ @@ -293,12 +293,16 @@ export default function AccountsPage() { // ID 不再单独占一列(客服不看),降到用户名下面做小字 —— 报障时还能念出来。 title: '账号', dataIndex: 'username', + width: 200, + // 用户名长短不一:定宽 + 省略号,别让它把整个表格撑开 + ellipsis: true, render: (username: string, record: AccountItem) => ( - + @@ -562,6 +567,7 @@ export default function AccountsPage() { selectedRowKeys.length > 0 ? (