fix(native-chat): let the run summary size to its content

`flex-1` on the truncating member list made it claim the header's slack, so
`+N more` was pushed to the far right edge with a gap between it and the last
member it counts. Without it the span still shrinks and truncates — `min-w-0`
plus the default shrink is what drives the ellipsis, which is how the header
worked before this branch — and the count now sits directly after the list at
every width.
This commit is contained in:
Merge Sim
2026-09-07 16:41:51 -07:00
parent 88ec26177f
commit 8b84b4e906
@@ -352,7 +352,7 @@ export function NativeChatToolRun({
`browser.open` and `tools/read`. The list stays one line and
truncates as a whole rather than wrapping into a block — a
header that grows to three rows stops reading as a header. */}
<span className="min-w-0 flex-1 truncate font-mono text-[11px] text-muted-foreground transition-colors group-hover:text-foreground/80">
<span className="min-w-0 truncate font-mono text-[11px] text-muted-foreground transition-colors group-hover:text-foreground/80">
{keyedSummaryMembers.map((member, index) => (
<span
key={member.key}
@@ -384,7 +384,7 @@ export function NativeChatToolRun({
) : null}
</>
) : (
<span className="min-w-0 flex-1 truncate font-mono text-[11px] text-muted-foreground transition-colors group-hover:text-foreground/80">
<span className="min-w-0 truncate font-mono text-[11px] text-muted-foreground transition-colors group-hover:text-foreground/80">
{fallbackLabel}
</span>
)}