feat: improve table column width

BREAKING CHANGE: major release
This commit is contained in:
Yang Luo
2026-04-11 19:08:54 +08:00
parent c16f4d2fb5
commit 5c051ba03d
11 changed files with 24 additions and 24 deletions

View File

@@ -125,7 +125,7 @@ class AdapterListPage extends BaseListPage {
title: i18next.t("adapter:Use same DB"),
dataIndex: "useSameDb",
key: "useSameDb",
width: "120px",
width: "130px",
sorter: true,
render: (text, record, index) => {
return (
@@ -148,7 +148,7 @@ class AdapterListPage extends BaseListPage {
title: i18next.t("syncer:Database type"),
dataIndex: "databaseType",
key: "databaseType",
width: "120px",
width: "140px",
sorter: (a, b) => a.databaseType.localeCompare(b.databaseType),
},
{

View File

@@ -164,7 +164,7 @@ class InvitationListPage extends BaseListPage {
title: i18next.t("invitation:Used count"),
dataIndex: "usedCount",
key: "usedCount",
width: "130px",
width: "140px",
sorter: true,
...this.getColumnSearchProps("usedCount"),
},

View File

@@ -223,7 +223,7 @@ class OrganizationListPage extends BaseListPage {
title: i18next.t("general:Password type"),
dataIndex: "passwordType",
key: "passwordType",
width: "150px",
width: "160px",
sorter: true,
filterMultiple: false,
filters: [
@@ -267,7 +267,7 @@ class OrganizationListPage extends BaseListPage {
title: i18next.t("organization:User balance"),
dataIndex: "userBalance",
key: "userBalance",
width: "120px",
width: "130px",
sorter: true,
render: (text, record, index) => {
return text ?? 0;
@@ -277,7 +277,7 @@ class OrganizationListPage extends BaseListPage {
title: i18next.t("organization:Balance credit"),
dataIndex: "balanceCredit",
key: "balanceCredit",
width: "120px",
width: "130px",
sorter: true,
render: (text, record, index) => {
return text ?? 0;
@@ -287,7 +287,7 @@ class OrganizationListPage extends BaseListPage {
title: i18next.t("organization:Balance currency"),
dataIndex: "balanceCurrency",
key: "balanceCurrency",
width: "140px",
width: "160px",
sorter: true,
render: (text, record, index) => {
return text || "USD";

View File

@@ -415,7 +415,7 @@ class PermissionListPage extends BaseListPage {
dataIndex: "approveTime",
key: "approveTime",
filterMultiple: false,
width: "120px",
width: "130px",
sorter: true,
render: (text, record, index) => {
return Setting.getFormattedDate(text);

View File

@@ -72,7 +72,7 @@ class RecordListPage extends BaseListPage {
title: i18next.t("general:Organization"),
dataIndex: "organization",
key: "organization",
width: "110px",
width: "140px",
sorter: true,
...this.getColumnSearchProps("organization"),
render: (text, record, index) => {
@@ -102,7 +102,7 @@ class RecordListPage extends BaseListPage {
title: i18next.t("general:Method"),
dataIndex: "method",
key: "method",
width: "100px",
width: "110px",
sorter: true,
filterMultiple: false,
filters: [
@@ -129,7 +129,7 @@ class RecordListPage extends BaseListPage {
title: i18next.t("user:Language"),
dataIndex: "language",
key: "language",
width: "90px",
width: "120px",
sorter: true,
...this.getColumnSearchProps("language"),
},

View File

@@ -197,7 +197,7 @@ class SiteListPage extends BaseListPage {
title: i18next.t("site:Other domains"),
dataIndex: "otherDomains",
key: "otherDomains",
width: "120px",
width: "140px",
sorter: (a, b) => a.otherDomains.localeCompare(b.otherDomains),
render: (text, record, index) => {
return record.otherDomains.map(domain => {

View File

@@ -162,7 +162,7 @@ class SyncerListPage extends BaseListPage {
title: i18next.t("syncer:Database type"),
dataIndex: "databaseType",
key: "databaseType",
width: "130px",
width: "140px",
sorter: (a, b) => a.databaseType.localeCompare(b.databaseType),
},
{
@@ -215,7 +215,7 @@ class SyncerListPage extends BaseListPage {
title: i18next.t("syncer:Sync interval"),
dataIndex: "syncInterval",
key: "syncInterval",
width: "140px",
width: "150px",
sorter: true,
...this.getColumnSearchProps("syncInterval"),
},

View File

@@ -109,7 +109,7 @@ class TokenListPage extends BaseListPage {
title: i18next.t("general:Application"),
dataIndex: "application",
key: "application",
width: "120px",
width: "130px",
sorter: true,
...this.getColumnSearchProps("application"),
render: (text, record, index) => {
@@ -124,7 +124,7 @@ class TokenListPage extends BaseListPage {
title: i18next.t("general:Organization"),
dataIndex: "organization",
key: "organization",
width: "120px",
width: "140px",
sorter: true,
...this.getColumnSearchProps("organization"),
render: (text, record, index) => {

View File

@@ -396,7 +396,7 @@ class UserListPage extends BaseListPage {
title: i18next.t("application:Real name"),
dataIndex: "realName",
key: "realName",
width: "120px",
width: "130px",
sorter: true,
...this.getColumnSearchProps("realName"),
},
@@ -464,7 +464,7 @@ class UserListPage extends BaseListPage {
title: i18next.t("user:Register source"),
dataIndex: "registerSource",
key: "registerSource",
width: "150px",
width: "160px",
sorter: true,
...this.getColumnSearchProps("registerSource"),
},
@@ -482,7 +482,7 @@ class UserListPage extends BaseListPage {
title: i18next.t("organization:Balance credit"),
dataIndex: "balanceCredit",
key: "balanceCredit",
width: "120px",
width: "130px",
sorter: true,
render: (text, record, index) => {
return text ?? 0;
@@ -492,7 +492,7 @@ class UserListPage extends BaseListPage {
title: i18next.t("organization:Balance currency"),
dataIndex: "balanceCurrency",
key: "balanceCurrency",
width: "140px",
width: "160px",
sorter: true,
render: (text, record, index) => {
return text || "USD";
@@ -514,7 +514,7 @@ class UserListPage extends BaseListPage {
title: i18next.t("user:Is forbidden"),
dataIndex: "isForbidden",
key: "isForbidden",
width: "110px",
width: "120px",
sorter: true,
render: (text, record, index) => {
return (

View File

@@ -142,7 +142,7 @@ class VerificationListPage extends BaseListPage {
title: i18next.t("login:Verification code"),
dataIndex: "code",
key: "code",
width: "150px",
width: "160px",
sorter: true,
...this.getColumnSearchProps("code"),
},

View File

@@ -148,7 +148,7 @@ class WebhookListPage extends BaseListPage {
title: i18next.t("webhook:Content type"),
dataIndex: "contentType",
key: "contentType",
width: "140px",
width: "150px",
sorter: true,
filterMultiple: false,
filters: [
@@ -171,7 +171,7 @@ class WebhookListPage extends BaseListPage {
title: i18next.t("webhook:Is user extended"),
dataIndex: "isUserExtended",
key: "isUserExtended",
width: "140px",
width: "150px",
sorter: true,
render: (text, record, index) => {
return (