From 64e2cfa35ab76f382564126484f878506a0bb358 Mon Sep 17 00:00:00 2001 From: jialin Date: Fri, 7 Nov 2025 11:54:11 +0800 Subject: [PATCH] fix: auto expand the fields group --- src/assets/styles/common.less | 8 +-- src/components/seal-form/base/select.tsx | 10 ++- .../components/not-found-content.tsx | 5 +- src/config/index.ts | 9 +++ src/hooks/use-app-utils.ts | 7 ++ src/locales/en-US/models.ts | 4 +- src/locales/ja-JP/models.ts | 7 +- src/locales/ru-RU/models.ts | 30 ++++++--- src/locales/zh-CN/models.ts | 4 +- src/pages/backends/components/add-modal.tsx | 10 ++- src/pages/backends/config/index.ts | 15 ++++- src/pages/backends/forms/basic.tsx | 66 ++++++++++--------- src/pages/backends/forms/index.tsx | 1 - src/pages/llmodels/forms/basic.tsx | 6 ++ src/pages/llmodels/forms/index.tsx | 18 +++-- .../llmodels/forms/speculative-decode.tsx | 4 +- src/pages/llmodels/index.tsx | 53 +++++++-------- .../playground/components/ground-reranker.tsx | 12 ++-- 18 files changed, 168 insertions(+), 101 deletions(-) diff --git a/src/assets/styles/common.less b/src/assets/styles/common.less index 7bc5c764..8ed396d6 100644 --- a/src/assets/styles/common.less +++ b/src/assets/styles/common.less @@ -229,6 +229,10 @@ margin-bottom: 0; } +.m-t-0 { + margin-top: 0; +} + .m-b-16 { margin-bottom: 16px; } @@ -278,10 +282,6 @@ gap: 16px; } -.gap-4 { - gap: 4px; -} - .color-white-tertiary { color: var(--color-white-tertiary); } diff --git a/src/components/seal-form/base/select.tsx b/src/components/seal-form/base/select.tsx index 7a78b6c5..7132f553 100644 --- a/src/components/seal-form/base/select.tsx +++ b/src/components/seal-form/base/select.tsx @@ -2,9 +2,11 @@ import IconFont from '@/components/icon-font'; import type { SelectProps } from 'antd'; import { Select } from 'antd'; import React, { forwardRef, useImperativeHandle } from 'react'; +import NotFoundContent from '../components/not-found-content'; const BaseSelect: React.FC = forwardRef( (props, ref) => { + const { notFoundContent, loading, ...restProps } = props; const [isFocus, setIsFocus] = React.useState(false); const inputRef = React.useRef(null); @@ -32,7 +34,13 @@ const BaseSelect: React.FC = forwardRef( return (