diff --git a/admin-frontend/src/features/subsribeConfigManager/GroupManager.tsx b/admin-frontend/src/features/subsribeConfigManager/GroupManager.tsx index ea6569e..5564509 100644 --- a/admin-frontend/src/features/subsribeConfigManager/GroupManager.tsx +++ b/admin-frontend/src/features/subsribeConfigManager/GroupManager.tsx @@ -24,7 +24,7 @@ export default function GroupManager() { { Object.keys(subs).map( (groupNumber: string) => ( - + ( {platformConf[record.platformName].name} ), + width: '7em', }, - { title: '帐号名称', dataIndex: 'targetName' }, - { title: '订阅帐号', dataIndex: 'target' }, + { title: '帐号名称', dataIndex: 'targetName', width: '10em' }, + { title: '订阅帐号', dataIndex: 'target', width: '10em' }, { title: '订阅分类', dataIndex: 'cats', + ellipsis: true, render: (col: string[], record: SubscribeConfig) => ( - - - { - record.cats.map((catNumber: number) => ( - {platformConf[record.platformName].categories[catNumber]} - )) - } - - + + { + record.cats.map((catNumber: number) => ( + {platformConf[record.platformName].categories[catNumber]} + )) + } + ), + width: '20em', }, { title: '订阅标签', dataIndex: 'tags', render: (col: string[], record: SubscribeConfig) => ( - - - { - record.tags.length === 0 ? 全部标签 - : record.tags.map((tag: string) => ( - {tag} - )) - } - - + + { + record.tags.length === 0 ? 全部标签 + : record.tags.map((tag: string) => ( + {tag} + )) + } + ), + width: '20em', }, { title: '操作', dataIndex: 'op', render: (_: null, record: SubscribeConfig) => ( - + ), + width: '16em', }, ]; @@ -107,6 +108,7 @@ export default function SubscribeManager() { data={subs[groupNumber].subscribes} rowKey={(record: SubscribeConfig) => `${record.platformName}-${record.target}`} loading={isLoading} + scroll={{ x: true }} /> { form.validate().then((value: SubscribeConfig) => { @@ -147,9 +149,11 @@ function SubscribeModal({ onCancel={() => setVisible(false)} confirmLoading={confirmLoading} onOk={onSubmit} + style={{ maxWidth: '90vw' }} >
520 ? 'horizontal' : 'vertical'} >