mirror of
https://github.com/stablyai/orca.git
synced 2026-10-02 16:02:15 +00:00
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:
@@ -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>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user