fix(style): cluster detail

This commit is contained in:
jialin
2026-06-05 22:18:26 +08:00
committed by jialin
parent b19db0f67d
commit 76618aa3a1
6 changed files with 38 additions and 16 deletions
+8 -2
View File
@@ -17,9 +17,10 @@ import useGPUColumns from '../hooks/use-gpu-columns';
// inside.
interface GPUListProps {
clusterId?: number;
source?: 'clusterDetail';
}
const GPUList: React.FC<GPUListProps> = ({ clusterId }) => {
const GPUList: React.FC<GPUListProps> = ({ clusterId, source }) => {
const {
dataSource,
queryParams,
@@ -109,7 +110,12 @@ const GPUList: React.FC<GPUListProps> = ({ clusterId }) => {
handleInputChange={handleNameChange}
handleSelectChange={handleClusterChange}
selectOptions={clusterList}
showSelect={!clusterId}
showSelect={source !== 'clusterDetail'}
widths={
source !== 'clusterDetail'
? { select: 230, input: 230 }
: { input: 300 }
}
></FilterBar>
<ConfigProvider renderEmpty={renderEmpty}>
<Table