Skip to content

Commit 4219118

Browse files
committed
Nicer Tools tab icon and tabs scroll behaviour
1 parent 30327da commit 4219118

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

apps/webapp/app/components/runs/v3/ai/AISpanDetails.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function AISpanDetails({
2424
return (
2525
<div className="flex h-full flex-col overflow-hidden">
2626
{/* Tab bar */}
27-
<div className="shrink-0 px-3">
27+
<div className="shrink-0 overflow-x-auto px-3 py-1 scrollbar-thin scrollbar-track-transparent scrollbar-thumb-charcoal-600">
2828
<TabContainer>
2929
<TabButton
3030
isActive={tab === "overview"}
@@ -48,7 +48,14 @@ export function AISpanDetails({
4848
onClick={() => setTab("tools")}
4949
shortcut={{ key: "t" }}
5050
>
51-
Tools{toolCount > 0 ? ` (${toolCount})` : ""}
51+
<span className="inline-flex items-center whitespace-nowrap">
52+
Tools
53+
{toolCount > 0 && (
54+
<span className="ml-1 inline-flex min-w-4 -translate-y-px items-center justify-center rounded-full border border-charcoal-600 bg-charcoal-650 px-1 py-0.5 text-[0.625rem] font-medium leading-none text-text-bright">
55+
{toolCount}
56+
</span>
57+
)}
58+
</span>
5259
</TabButton>
5360
</TabContainer>
5461
</div>

0 commit comments

Comments
 (0)