fix: target model text overflow
This commit is contained in:
@@ -21,8 +21,8 @@ const ProviderModels: React.FC<ProviderModelProps> = ({ dataList }) => {
|
||||
|
||||
const intl = useIntl();
|
||||
|
||||
const head12Items = dataList.slice(0, 8);
|
||||
const restItems = dataList.slice(8);
|
||||
const head12Items = dataList.slice(0, 4);
|
||||
const restItems = dataList.slice(4);
|
||||
|
||||
const renderModels = (dataList: ProviderModel[]) => {
|
||||
return (
|
||||
|
||||
@@ -161,14 +161,14 @@ const MaasProvider: React.FC = () => {
|
||||
<ConfigProvider renderEmpty={renderEmpty}>
|
||||
<Table
|
||||
rowKey="id"
|
||||
tableLayout="auto"
|
||||
tableLayout="fixed"
|
||||
sortDirections={TABLE_SORT_DIRECTIONS}
|
||||
showSorterTooltip={false}
|
||||
dataSource={dataSource.dataList}
|
||||
loading={dataSource.loading}
|
||||
rowSelection={rowSelection}
|
||||
columns={columns}
|
||||
scroll={{ x: true }}
|
||||
scroll={{ x: 900 }}
|
||||
pagination={{
|
||||
showSizeChanger: true,
|
||||
pageSize: queryParams.perPage,
|
||||
|
||||
Reference in New Issue
Block a user