fix(style): layout content padding

This commit is contained in:
jialin
2025-02-24 14:10:50 +08:00
parent 529b3cb18f
commit f91311144b
17 changed files with 92 additions and 19 deletions
+3
View File
@@ -208,6 +208,9 @@ const Catalog: React.FC = () => {
ghost
header={{
title: intl.formatMessage({ id: 'menu.modelCatalog' }),
style: {
paddingInline: 'var(--layout-content-inlinepadding)'
},
breadcrumb: {}
}}
extra={[]}
@@ -75,6 +75,24 @@ const InstanceItem: React.FC<InstanceItemProps> = ({
}) => {
const intl = useIntl();
const distributeCols = [
{
title: 'Worker',
key: 'worker_name'
},
{
title: 'IP',
key: 'worker_ip',
render: ({ row }: { row: ModelInstanceListItem }) => {
return row.port ? `${row.worker_ip}:${row.port}` : row.worker_ip;
}
},
{
title: intl.formatMessage({ id: 'models.table.gpuindex' }),
key: 'gpu_index'
}
];
const renderWorkerInfo = (item: ModelInstanceListItem) => {
let workerIp = '-';
if (item.worker_ip) {
@@ -835,6 +835,9 @@ const Models: React.FC<ModelsProps> = ({
ghost
header={{
title: intl.formatMessage({ id: 'models.title' }),
style: {
paddingInline: 'var(--layout-content-inlinepadding)'
},
breadcrumb: {}
}}
extra={[]}
+1
View File
@@ -280,6 +280,7 @@ const Models: React.FC = () => {
setCatalogList(resultList || []);
} catch (error) {
// ignore
setCatalogList([]);
}
};
getCataLogList();