Enhance Dialog component to accept contentClassName prop for customizable styling. Update ToolLibraryPage to utilize new prop for improved modal layout. Refactor text in ToolLibrary for clarity.
This commit is contained in:
@@ -486,6 +486,7 @@ export const ToolLibraryPage: React.FC = () => {
|
||||
isOpen={isToolModalOpen}
|
||||
onClose={() => setIsToolModalOpen(false)}
|
||||
title={editingTool ? '编辑自定义工具' : '添加自定义工具'}
|
||||
contentClassName="max-w-4xl"
|
||||
footer={
|
||||
<>
|
||||
<Button variant="ghost" onClick={() => setIsToolModalOpen(false)}>取消</Button>
|
||||
@@ -560,7 +561,7 @@ export const ToolLibraryPage: React.FC = () => {
|
||||
</div>
|
||||
{toolParameters.length === 0 ? (
|
||||
<div className="rounded-md border border-white/10 bg-black/20 p-3 text-xs text-muted-foreground">
|
||||
当前无参数。可以按 ElevenLabs 风格逐个添加参数,无需直接编辑 JSON Schema。
|
||||
当前无参数。可以逐个添加参数,无需直接编辑 JSON Schema。
|
||||
</div>
|
||||
) : (
|
||||
<div className="space-y-3">
|
||||
|
||||
Reference in New Issue
Block a user