Skip to content

Commit ece0e27

Browse files
authored
Merge pull request #823 from ksinder/main
`ToolsTab`: truncate longer tool descriptions for nicer rendering
2 parents 6d691e9 + 01adbe5 commit ece0e27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/src/components/ToolsTab.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const ToolsTab = ({
121121
renderItem={(tool) => (
122122
<div className="flex flex-col items-start">
123123
<span className="flex-1">{tool.name}</span>
124-
<span className="text-sm text-gray-500 text-left">
124+
<span className="text-sm text-gray-500 text-left line-clamp-3">
125125
{tool.description}
126126
</span>
127127
</div>
@@ -149,7 +149,7 @@ const ToolsTab = ({
149149
</AlertDescription>
150150
</Alert>
151151
)}
152-
<p className="text-sm text-gray-600 dark:text-gray-400">
152+
<p className="text-sm text-gray-600 dark:text-gray-400 whitespace-pre-wrap max-h-48 overflow-y-auto">
153153
{selectedTool.description}
154154
</p>
155155
{Object.entries(selectedTool.inputSchema.properties ?? []).map(

0 commit comments

Comments
 (0)