mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-11-17 00:20:51 +00:00
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:
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
|
||||
> {/if}{shown.label}
|
||||
|
||||
Reference in New Issue
Block a user