Skip to content

Commit a234a82

Browse files
committed
fix(web): seat the out-of-capacity tab on the composer's straight edge
1 parent 0df9a9e commit a234a82

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

apps/web/src/components/chat/ThreadHandoffTab.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ export const ThreadHandoffTab = memo(function ThreadHandoffTab({
5353
type="button"
5454
aria-label={`${offer.spentAccountName} is out of capacity — continue on ${offer.targetAccountName}`}
5555
className={cn(
56-
"absolute -top-3 right-3 z-10 inline-flex h-6 items-center gap-1.5 rounded-t-md rounded-b-none",
56+
// The composer frame is rounded-[22px], so the inset has to clear
57+
// that radius: anything smaller lands the tab on the curve, where
58+
// its square bottom edge cannot sit flush and it reads as floating
59+
// beside the composer rather than attached to it.
60+
"absolute -top-3 right-6 z-10 inline-flex h-6 items-center gap-1.5 rounded-t-md rounded-b-none",
5761
"border border-b-0 border-warning/30 bg-warning/12 px-2 text-xs font-medium text-warning",
5862
"hover:bg-warning/18",
5963
)}

0 commit comments

Comments
 (0)