style: selector max tag count

This commit is contained in:
jialin
2026-06-02 17:51:25 +08:00
committed by jialin
parent 6537de5224
commit f29236518e
4 changed files with 5 additions and 6 deletions
@@ -117,7 +117,7 @@ const FilterBar: React.FC<FilterBarProps> = (props) => {
showSearch
mode="multiple"
options={userList}
maxTagCount={0}
maxTagCount={'responsive'}
placeholder={intl.formatMessage({
id: 'dashboard.usage.selectuser'
})}
@@ -589,7 +589,7 @@ const GPUServiceInstanceForm: React.FC<InstanceFormProps> = forwardRef(
required
disabled={disabled}
mode="multiple"
maxTagCount={1}
maxTagCount={'responsive'}
label={intl.formatMessage({
id: 'gpuservice.instance.ssh.assignKey'
})}
@@ -35,9 +35,6 @@ const GPUService: React.FC = () => {
const setClusterSession = useSetAtom(clusterSessionAtom);
const [, modalContextHolder] = Modal.useModal();
// Empty-state CTA: send the user to the cluster-create flow with
// Kubernetes preselected so the GPU Service feature is reachable
// in one step instead of having to pick the provider themselves.
const handleAddK8sCluster = () => {
setClusterSession({
firstAddWorker: false,
+3 -1
View File
@@ -246,6 +246,7 @@ const FilterBar: React.FC<FilterBarProps> = (props) => {
allowClear
showSearch
mode="multiple"
maxTagCount={'responsive'}
options={routeOptions}
placeholder={intl.formatMessage({ id: 'usage.filter.model' })}
styles={{
@@ -261,6 +262,7 @@ const FilterBar: React.FC<FilterBarProps> = (props) => {
allowClear
showSearch
mode="multiple"
maxTagCount={'responsive'}
options={userOptions}
placeholder={intl.formatMessage({ id: 'usage.filter.user' })}
styles={{
@@ -317,8 +319,8 @@ const FilterBar: React.FC<FilterBarProps> = (props) => {
allowClear
showSearch
mode="multiple"
maxTagCount={'responsive'}
options={apiKeyOptions?.[0]?.children || []}
maxTagCount={0}
placeholder={intl.formatMessage({ id: 'usage.filter.apikey' })}
styles={{
wrapper: { flex: 1, maxWidth: 240, minWidth: 100 }