fix: truncate long labels in chat tool call headers (#12366)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Guilhem
2026-11-12 12:41:31 +01:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 354aa2581d
commit d0339396ef
@@ -80,12 +80,15 @@
<div class={twMerge('font-mono text-xs', className)}>
{#snippet labelText(highlight: boolean)}
<!-- One line, cut with an ellipsis: a long name (a script summary) wrapping would push the
status and chevron off the row's single line. -->
<span
class={twMerge(
'text-secondary font-medium text-2xs',
'text-secondary font-medium text-2xs truncate min-w-0',
labelClass,
highlight && 'text-emphasis'
)}
title={highlight ? undefined : `${shown.prefix ? `${shown.prefix} ` : ''}${shown.label}`}
>
{#if shown.prefix}<span class="font-normal text-secondary">{shown.prefix}</span
>&nbsp;{/if}{shown.label}