From c6e8d7d256727ef7f91c94855a4addc66c0ec6bd Mon Sep 17 00:00:00 2001 From: Alex Rawlings Date: Tue, 18 Aug 2026 12:45:39 -0600 Subject: [PATCH] Fix centered icon buttons swallowing their own clicks The platform Button's :active nudge overwrote the translate that centered them, sliding the button out from under the cursor mid-press. --- src/components/ArcOverlay.tsx | 71 ++++++++++++++++++++--------------- src/components/TokenChip.tsx | 53 ++++++++++++++------------ 2 files changed, 70 insertions(+), 54 deletions(-) diff --git a/src/components/ArcOverlay.tsx b/src/components/ArcOverlay.tsx index 9451c45c..814cf2c9 100644 --- a/src/components/ArcOverlay.tsx +++ b/src/components/ArcOverlay.tsx @@ -303,40 +303,49 @@ export function ArcOverlay({ ); const willCreateFreeTokens = arcSplitFreeRefs !== undefined; return ( - + + ); })} diff --git a/src/components/TokenChip.tsx b/src/components/TokenChip.tsx index 0011d841..5fa6d4ae 100644 --- a/src/components/TokenChip.tsx +++ b/src/components/TokenChip.tsx @@ -531,29 +531,36 @@ export function TokenChip({ type="text" /> {hasMultipleSuggestions && ( - + // Absolutely positioned inside the input's reserved end-padding so it never affects + // layout. The centering offset sits here rather than on the button: the platform + // button nudges itself on `:active` through the same translate custom property, so a + // button that centered itself would slide out from under the cursor mid-press and + // drop the click. + + + )}