+
),
@@ -414,17 +415,20 @@ const NotifyGroup = ({ memberStore, commonPayload }: IProps) => {
{
title: i18n.t('default:creator'),
dataIndex: 'creator',
+ width: 160,
render: (text) => userMap[text]?.nick,
},
{
title: i18n.t('default:create time'),
dataIndex: 'createdAt',
+ width: 176,
render: (text) => moment(text).format('YYYY-MM-DD HH:mm:ss'),
},
{
title: i18n.t('default:operation'),
dataIndex: 'id',
- width: 150,
+ width: 160,
+ fixed: 'right',
render: (id: number, record) => {
return (
@@ -470,7 +474,7 @@ const NotifyGroup = ({ memberStore, commonPayload }: IProps) => {
modalProps={{ destroyOnClose: true }}
/>
-
+
);
diff --git a/shell/app/modules/application/pages/settings/components/app-notify/notify-config.tsx b/shell/app/modules/application/pages/settings/components/app-notify/notify-config.tsx
index 49f6d6a606..22c34fba92 100644
--- a/shell/app/modules/application/pages/settings/components/app-notify/notify-config.tsx
+++ b/shell/app/modules/application/pages/settings/components/app-notify/notify-config.tsx
@@ -218,8 +218,9 @@ export const NotifyConfig = ({ commonPayload, memberStore }: IProps) => {
dataIndex: ['notifyGroup', 'targets'],
ellipsis: true,
className: 'notify-info',
+ width: 200,
render: (targets) => (
-
+
),
@@ -227,17 +228,20 @@ export const NotifyConfig = ({ commonPayload, memberStore }: IProps) => {
{
title: i18n.t('default:creator'),
dataIndex: 'creator',
+ width: 160,
render: (text) => userMap[text]?.nick,
},
{
title: i18n.t('default:create time'),
dataIndex: 'createdAt',
+ width: 176,
render: (text) => moment(text).format('YYYY-MM-DD HH:mm:ss'),
},
{
title: i18n.t('default:operation'),
dataIndex: 'id',
- width: 150,
+ width: 160,
+ fixed: 'right',
render: (text, record) => {
return (
@@ -293,7 +297,7 @@ export const NotifyConfig = ({ commonPayload, memberStore }: IProps) => {
modalProps={{ destroyOnClose: true }}
/>
-
+
);
diff --git a/shell/app/modules/application/pages/settings/components/app-variable-config.tsx b/shell/app/modules/application/pages/settings/components/app-variable-config.tsx
index 4d59a90995..cc0114952f 100644
--- a/shell/app/modules/application/pages/settings/components/app-variable-config.tsx
+++ b/shell/app/modules/application/pages/settings/components/app-variable-config.tsx
@@ -15,6 +15,7 @@ import { useLoading } from 'core/stores/loading';
import configStore from 'app/modules/application/stores/pipeline-config';
import appStore from 'application/stores/application';
import { Copy, IF, useUpdate, CustomFilter, FileEditor } from 'common';
+import { ColumnProps } from 'core/common/interface';
import { WORKSPACE_LIST } from 'common/constants';
import routeInfoStore from 'core/stores/route';
import i18n from 'i18n';
@@ -203,14 +204,15 @@ const VariableConfig = ({
});
};
- const getColumns = (_env: string) => [
+ const getColumns = (_env: string): Array
> => [
{
title: 'Key',
dataIndex: 'key',
+ width: 176,
sorter: (a: IKey, b: IKey) => a.key.charCodeAt(0) - b.key.charCodeAt(0),
render: (text: string, { isFromDefault, source }: IKey) => (
-
+
{text}
@@ -228,6 +230,7 @@ const VariableConfig = ({
title: 'Value',
dataIndex: 'value',
className: 'nowrap',
+ width: 176,
render: (text: string, record: IKey) => {
return record.type === typeMap.kv ? (
record.encrypt ? (
@@ -247,6 +250,7 @@ const VariableConfig = ({
{
title: i18n.t('application:type'),
dataIndex: 'type',
+ width: 96,
render: (text: string) => (text === typeMap.kv ? i18n.t('application:value') : i18n.t('application:file')),
},
{
@@ -257,7 +261,8 @@ const VariableConfig = ({
{
title: i18n.t('common:operation'),
dataIndex: 'operations',
- width: 160,
+ width: 200,
+ fixed: 'right',
render: (operations: IKeyOperations, record: IKey) => {
const { canDelete, canDownload, canEdit } = operations || {};
const { encrypt } = record;
@@ -380,7 +385,7 @@ const VariableConfig = ({
>
)}
-
+
);
})}
diff --git a/shell/app/modules/application/pages/test/test-list.tsx b/shell/app/modules/application/pages/test/test-list.tsx
index 385bfceb37..0ce65ec9e4 100644
--- a/shell/app/modules/application/pages/test/test-list.tsx
+++ b/shell/app/modules/application/pages/test/test-list.tsx
@@ -68,6 +68,7 @@ const columns: Array> = [
{
title: i18n.t('default:name'),
dataIndex: 'name',
+ width: 176,
render: (text) => {cutStr(text, 30, { showTip: true })},
},
{
@@ -77,19 +78,23 @@ const columns: Array> = [
{
title: i18n.t('default:creator'),
dataIndex: 'operatorName',
+ width: 120,
},
{
title: i18n.t('default:create time'),
dataIndex: 'createdAt',
+ width: 176,
render: (text) => fromNow(text),
},
{
title: i18n.t('default:type'),
dataIndex: 'type',
+ width: 120,
},
{
title: i18n.t('application:time consuming'),
dataIndex: ['totals', 'duration'],
+ width: 160,
render: (text) => getTestDuration(text),
},
{
@@ -134,7 +139,7 @@ const TestList = () => {
...testListPaging,
onChange: handlePageChange,
}}
- scroll={{ x: '100%' }}
+ scroll={{ x: 1100 }}
/>
diff --git a/shell/app/modules/cmp/common/addon-detail/resource.tsx b/shell/app/modules/cmp/common/addon-detail/resource.tsx
index a912237502..1ba3ce0260 100644
--- a/shell/app/modules/cmp/common/addon-detail/resource.tsx
+++ b/shell/app/modules/cmp/common/addon-detail/resource.tsx
@@ -34,30 +34,34 @@ export const PureResourceList = ({ renderOp, resourceList, loading, drawerComp }
title: i18n.t('container IP'),
dataIndex: 'containerIP',
key: 'containerIP',
- width: 150,
+ width: 160,
fixed: 'left',
},
{
title: i18n.t('host IP'),
dataIndex: 'hostIP',
key: 'hostIP',
+ width: 160,
},
{
title: i18n.t('cpu limit'),
dataIndex: 'cpuLimit',
key: 'cpuLimit',
+ width: 120,
sorter: (a: IResource, b: IResource) => a.cpuLimit - b.cpuLimit,
},
{
title: i18n.t('org:CPU allocation'),
dataIndex: 'cpuRequest',
key: 'cpuRequest',
+ width: 120,
sorter: (a: IResource, b: IResource) => a.cpuRequest - b.cpuRequest,
},
{
title: i18n.t('memory limit'),
dataIndex: 'memLimit',
key: 'memLimit',
+ width: 120,
render: (v: number) => getFormatter('CAPACITY', 'MB').format(v),
sorter: (a: IResource, b: IResource) => a.memLimit - b.memLimit,
},
@@ -65,6 +69,7 @@ export const PureResourceList = ({ renderOp, resourceList, loading, drawerComp }
title: i18n.t('org:MEM allocation'),
dataIndex: 'memRequest',
key: 'memRequest',
+ width: 120,
render: (v: number) => getFormatter('CAPACITY', 'MB').format(v),
sorter: (a: IResource, b: IResource) => a.memRequest - b.memRequest,
},
@@ -72,7 +77,6 @@ export const PureResourceList = ({ renderOp, resourceList, loading, drawerComp }
title: i18n.t('image'),
dataIndex: 'image',
key: 'image',
- width: 300,
render: (image: string) => (
@@ -92,7 +96,7 @@ export const PureResourceList = ({ renderOp, resourceList, loading, drawerComp }
title: i18n.t('status'),
dataIndex: 'status',
key: 'status',
- width: 100,
+ width: 120,
render: (v: string) =>
v === 'Healthy' ? (
<>
@@ -114,7 +118,7 @@ export const PureResourceList = ({ renderOp, resourceList, loading, drawerComp }
{
title: i18n.t('operations'),
key: 'operation',
- width: 120,
+ width: 176,
fixed: 'right',
render: renderOp,
},
diff --git a/shell/app/modules/cmp/pages/cluster-manage/cluster-list.tsx b/shell/app/modules/cmp/pages/cluster-manage/cluster-list.tsx
index 6be18614d7..9c4ad604fa 100644
--- a/shell/app/modules/cmp/pages/cluster-manage/cluster-list.tsx
+++ b/shell/app/modules/cmp/pages/cluster-manage/cluster-list.tsx
@@ -287,6 +287,7 @@ const ClusterList = ({ dataSource, onEdit }: IProps) => {
{
title: i18n.t('application:status'),
dataIndex: 'clusterStatus',
+ width: 120,
render: (_text, record) => {
const clusterDetail = getClusterDetail(record.name);
const status = get(clusterDetail, 'basic.clusterStatus.value') as keyof typeof statusMap;
@@ -309,7 +310,7 @@ const ClusterList = ({ dataSource, onEdit }: IProps) => {
{
title: i18n.t('application:type'),
dataIndex: 'clusterType',
- width: 125,
+ width: 160,
ellipsis: true,
render: (_text, record) => {
const clusterDetail = getClusterDetail(record.name);
@@ -327,6 +328,7 @@ const ClusterList = ({ dataSource, onEdit }: IProps) => {
{
title: i18n.t('cmp:management method'),
dataIndex: 'manageType',
+ width: 120,
render: (_text, record) => {
const clusterDetail = getClusterDetail(record.name);
const manageType = get(clusterDetail, 'basic.manageType.value');
@@ -336,6 +338,7 @@ const ClusterList = ({ dataSource, onEdit }: IProps) => {
{
title: i18n.t('version'),
dataIndex: 'clusterVersion',
+ width: 96,
render: (_text, record) => {
const clusterDetail = getClusterDetail(record.name);
return get(clusterDetail, 'basic.clusterVersion.value', '');
@@ -344,6 +347,7 @@ const ClusterList = ({ dataSource, onEdit }: IProps) => {
{
title: i18n.t('machines'),
dataIndex: 'nodeCount',
+ width: 96,
render: (_text, record) => {
const clusterDetail = getClusterDetail(record.name);
return get(clusterDetail, 'basic.nodeCount.value', '-');
@@ -448,6 +452,7 @@ const ClusterList = ({ dataSource, onEdit }: IProps) => {
pagination={false}
rowKey="id"
loading={loadingList || loadingDetail}
+ scroll={{ x: 1500 }}
/>
>
diff --git a/shell/app/modules/cmp/pages/cluster-manage/operation-history.tsx b/shell/app/modules/cmp/pages/cluster-manage/operation-history.tsx
index 926a53ca73..afa00164b7 100644
--- a/shell/app/modules/cmp/pages/cluster-manage/operation-history.tsx
+++ b/shell/app/modules/cmp/pages/cluster-manage/operation-history.tsx
@@ -80,7 +80,7 @@ export const OperationHistory = () => {
{
title: 'ID',
dataIndex: 'recordID',
- width: 90,
+ width: 96,
},
{
title: i18n.t('org:cluster name'),
@@ -90,7 +90,7 @@ export const OperationHistory = () => {
{
title: `${i18n.t('operation')}${i18n.t('name')}`,
dataIndex: 'recordType',
- width: 140,
+ width: 160,
render: (val: string) => {
return
{val};
},
@@ -111,7 +111,7 @@ export const OperationHistory = () => {
{
title: i18n.t('time'),
dataIndex: 'createTime',
- width: 190,
+ width: 200,
render: (createTime: string) => {
return
{moment(createTime).format('YYYY-MM-DD HH:mm:ss')};
},
@@ -119,7 +119,7 @@ export const OperationHistory = () => {
{
title: i18n.t('user'),
dataIndex: 'userID',
- width: 100,
+ width: 120,
render: (id: string) =>
userMap[id] ?
{cutStr(userMap[id].nick || userMap[id].name, 8, { showTip: true })} : null,
},
@@ -194,7 +194,7 @@ export const OperationHistory = () => {
total: operationPaging.total,
onChange: (no: number) => getList({ pageNo: no, ...filters }),
}}
- scroll={{ x: '100%' }}
+ scroll={{ x: 1100 }}
/>
updater.curRow(null)} />
diff --git a/shell/app/modules/dcos/pages/machine-manager/machine-table.tsx b/shell/app/modules/dcos/pages/machine-manager/machine-table.tsx
index 07800b9c77..0d29614771 100644
--- a/shell/app/modules/dcos/pages/machine-manager/machine-table.tsx
+++ b/shell/app/modules/dcos/pages/machine-manager/machine-table.tsx
@@ -479,7 +479,7 @@ const MachineTable = ({ list, gotoMachineMonitor, gotoMachineTasks, isFetching =
const columns: Array