Skip to content

Commit a705dc5

Browse files
Merge pull request #1184 from Kiln-AI/dchiang/KIL-476/tool-description-new-line
Allow line breaks in tool description
2 parents e86fe2b + 02975df commit a705dc5

File tree

1 file changed

+6
-2
lines changed
  • app/web_ui/src/routes/(app)/tools/[project_id]/tool_servers/[tool_server_id]

1 file changed

+6
-2
lines changed

app/web_ui/src/routes/(app)/tools/[project_id]/tool_servers/[tool_server_id]/+page.svelte

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,9 @@
582582
)}
583583
<tr>
584584
<td class="font-medium">{tool.name}</td>
585-
<td class="max-w-[300px]">{tool.description || "None"}</td>
585+
<td class="max-w-[300px] whitespace-pre-line break-words"
586+
>{tool.description || "None"}</td
587+
>
586588
<td>
587589
{#if formatted_args.length > 0}
588590
<div class="divide-y divide-y-[0.5px]">
@@ -601,7 +603,9 @@
601603
</div>
602604
{#if arg.description}
603605
<div class="text-gray-500 text-sm mt-1">
604-
{arg.description}
606+
<span class="whitespace-pre-line break-words"
607+
>{arg.description}</span
608+
>
605609
</div>
606610
{/if}
607611
</div>

0 commit comments

Comments
 (0)