Skip to content

Commit

Permalink
Fix content centering inside CallIconButton (oughtinc#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuhlmueller committed Jul 17, 2023
2 parents fa548bb + 5962166 commit 0b134c4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ui/components/TracePage/CallIconButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const CallIconButton = forwardRef(
ref,
) => (
<Button
className="rounded-full p-1 h-fit mr-2 !shadow-none hover:bg-slate-200 w-12"
className="rounded-full p-1 h-fit mr-2 !shadow-none hover:bg-slate-200 w-fit"
isActive={expanded}
{...(isModelCall || !childCount
? {}
Expand All @@ -30,7 +30,13 @@ export const CallIconButton = forwardRef(
size="md"
variant="outline"
>
<span className="mr-1">{isModelCall ? <ChatCenteredDots /> : childCount || "𝑓"}</span>
<span
className={`h-4
${isModelCall || childCount == 0 ? "mx-1" : "mr-1 "}
${childCount == 0 ? "relative bottom-0.5" : ""}`}
>
{isModelCall ? <ChatCenteredDots /> : childCount || "𝑓"}
</span>
</Button>
),
);

0 comments on commit 0b134c4

Please sign in to comment.