diff --git a/web/src/components/playground/SettingsPanel.js b/web/src/components/playground/SettingsPanel.js index db881c26..aea08fe1 100644 --- a/web/src/components/playground/SettingsPanel.js +++ b/web/src/components/playground/SettingsPanel.js @@ -2,19 +2,16 @@ import React from 'react'; import { Card, Select, - TextArea, Typography, Button, Switch, - Divider, - Banner, } from '@douyinfe/semi-ui'; import { Sparkles, Users, ToggleLeft, X, - AlertTriangle, + Settings, } from 'lucide-react'; import { useTranslation } from 'react-i18next'; import { renderGroupOption } from '../../helpers/render.js'; @@ -54,32 +51,47 @@ const SettingsPanel = ({ return ( - {styleState.isMobile && ( -
- {/* 移动端显示配置管理下拉菜单和关闭按钮 */} - + {/* 标题区域 - 与调试面板保持一致 */} +
+
+
+ +
+ + {t('模型配置')} + +
+ + {styleState.isMobile && onCloseSettings && (
+ + {/* 移动端配置管理 */} + {styleState.isMobile && ( +
+
)} diff --git a/web/src/pages/Playground/index.js b/web/src/pages/Playground/index.js index 0e7958ab..fcb993c0 100644 --- a/web/src/pages/Playground/index.js +++ b/web/src/pages/Playground/index.js @@ -362,7 +362,7 @@ const Playground = () => { flexShrink: 0, minWidth: styleState.isMobile ? '100%' : 320, maxWidth: styleState.isMobile ? '100%' : 320, - height: styleState.isMobile ? 'auto' : 'calc(100vh - 64px)', + height: styleState.isMobile ? 'auto' : 'calc(100vh - 66px)', overflow: 'auto', position: styleState.isMobile ? 'fixed' : 'relative', zIndex: styleState.isMobile ? 1000 : 1, @@ -399,7 +399,7 @@ const Playground = () => { )} -
+