diff --git a/web/components/UI.tsx b/web/components/UI.tsx index 28109bd..ffd5767 100644 --- a/web/components/UI.tsx +++ b/web/components/UI.tsx @@ -209,15 +209,16 @@ interface DialogProps { title: string; children: React.ReactNode; footer?: React.ReactNode; + contentClassName?: string; } -export const Dialog: React.FC = ({ isOpen, onClose, title, children, footer }) => { +export const Dialog: React.FC = ({ isOpen, onClose, title, children, footer, contentClassName }) => { if (!isOpen) return null; return (
-
+

{title}

diff --git a/web/pages/ToolLibrary.tsx b/web/pages/ToolLibrary.tsx index 8c6b898..cfc097c 100644 --- a/web/pages/ToolLibrary.tsx +++ b/web/pages/ToolLibrary.tsx @@ -486,6 +486,7 @@ export const ToolLibraryPage: React.FC = () => { isOpen={isToolModalOpen} onClose={() => setIsToolModalOpen(false)} title={editingTool ? '编辑自定义工具' : '添加自定义工具'} + contentClassName="max-w-4xl" footer={ <> @@ -560,7 +561,7 @@ export const ToolLibraryPage: React.FC = () => {
{toolParameters.length === 0 ? (
- 当前无参数。可以按 ElevenLabs 风格逐个添加参数,无需直接编辑 JSON Schema。 + 当前无参数。可以逐个添加参数,无需直接编辑 JSON Schema。
) : (