Skip to content

Commit 03851b8

Browse files
authored
fix(web): keep large thread counts from shrinking labels (pingdotgg#25355)
1 parent 69f85ef commit 03851b8

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎apps/web/src/components/chat/ThreadRelationshipsControl.tsx‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,12 @@ function ThreadLineageGroup(props: {
139139
{props.label ? (
140140
<ThreadDetailsControl aria-expanded={expanded} onClick={() => setExpanded(!expanded)}>
141141
<BotIcon aria-hidden className={THREAD_DETAILS_PANEL_ICON_CLASS} />
142-
<span className={THREAD_DETAILS_PANEL_LABEL_CLASS}>{props.label}</span>
143-
<span aria-hidden className="min-w-2 flex-1" />
142+
<span className={cn(THREAD_DETAILS_PANEL_LABEL_CLASS, "min-w-0 flex-1 truncate")}>
143+
{props.label}
144+
</span>
144145
{failedCount > 0 ? <SectionHeaderStatus>{failedCount} failed</SectionHeaderStatus> : null}
145146
{expanded ? null : (
146-
<span className="text-xs font-normal tabular-nums text-muted-foreground">
147+
<span className="shrink-0 text-xs font-normal tabular-nums text-muted-foreground">
147148
{props.rows.length}
148149
</span>
149150
)}

0 commit comments

Comments
 (0)