fix(style): cluster state do not display

This commit is contained in:
jialin
2025-10-14 13:09:22 +08:00
parent 903500dcfa
commit 620c113fae
28 changed files with 200 additions and 198 deletions
@@ -1,5 +1,6 @@
import IconFont from '@/components/icon-font';
import hotkeys from '@/config/hotkeys';
import { SearchOutlined } from '@ant-design/icons';
import { useIntl } from '@umijs/max';
import { Input } from 'antd';
import React, { useRef } from 'react';
@@ -61,6 +62,12 @@ const SearchInput: React.FC<{
e.stopPropagation();
}}
allowClear
suffix={
<SearchOutlined
className="font-size-16"
style={{ color: 'var(--ant-color-text-placeholder)' }}
/>
}
prefix={
<IconFont
className="font-size-16"
@@ -36,7 +36,7 @@ interface SearchInputProps {
modelSource: string;
isDownload?: boolean;
gpuOptions?: any[];
clusterId: number;
clusterId?: number;
setLoadingModel?: (flag: boolean) => void;
onSourceChange?: (source: string) => void;
onSelectModel: (model: any, manul?: boolean) => void;
@@ -547,7 +547,7 @@ const SearchModel: React.FC<SearchInputProps> = (props) => {
options={filterOptions}
size="middle"
placeholder={intl.formatMessage({ id: 'common.input.type' })}
style={{ width: 150 }}
style={{ width: 120 }}
></BaseSelect>
</span>
<PaginationMain