From 256b026a761d642e7ef20676d7ead26e0cbc034e Mon Sep 17 00:00:00 2001 From: Brandon McAnsh Date: Wed, 9 Sep 2026 14:54:24 -0400 Subject: [PATCH] fix(chat): make the whole Send Cash pill tappable while it stands alone MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Alone in the bar, "Send a Tip" (and "Send €" before an ordinary chat exists) spans the width but only answered a tap on its text. The label is the only drawn content and the fill sits on the Button rather than inside the label, so with `.plain` the stretched frame around the text was not a target. The Cancel-edit pill beside it hit the same thing and fixed it the same way: a content shape on the label. --- .../Core/Screens/Conversation/ConversationBottomBar.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Flipcash/Core/Screens/Conversation/ConversationBottomBar.swift b/Flipcash/Core/Screens/Conversation/ConversationBottomBar.swift index 34e84172e..840178385 100644 --- a/Flipcash/Core/Screens/Conversation/ConversationBottomBar.swift +++ b/Flipcash/Core/Screens/Conversation/ConversationBottomBar.swift @@ -557,6 +557,10 @@ struct SendCashMorphButton: View { .frame(minWidth: BarMetrics.contentHeight) .frame(maxWidth: standalone && !minimized ? .infinity : nil) .frame(height: height) + // The label is the only drawn content and the fill is a background on the button, not + // on the label, so with `.plain` only the text was the target: alone in the bar the + // pill spans the width but "Send a Tip" answered a tap on its centre and nothing else. + .contentShape(RoundedRectangle(cornerRadius: cornerRadius)) } .buttonStyle(.plain) // White fill above the glass base: fading it out is the white → glass