From cbae70336d4ca7ddb9d397329399ba0580f0380e Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Thu, 21 May 2026 15:35:52 -0700 Subject: [PATCH] fix: align GIF picker tap hitboxes with visible thumbnails MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix GIF picker grid tap hitbox selecting adjacent item by aligning GIF picker tap hitboxes with visible thumbnails. Co-authored-by: danieldaquino <24692108+danieldaquino@users.noreply.github.com> Changelog-Fixed: Fix GIF picker grid tap hitbox selecting adjacent item Closes: https://github.com/damus-io/damus/issues/3744 Signed-off-by: Daniel D’Aquino --- damus/Shared/Media/GIF/GIFPickerView.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/damus/Shared/Media/GIF/GIFPickerView.swift b/damus/Shared/Media/GIF/GIFPickerView.swift index 43590939..d62c3386 100644 --- a/damus/Shared/Media/GIF/GIFPickerView.swift +++ b/damus/Shared/Media/GIF/GIFPickerView.swift @@ -92,6 +92,7 @@ struct GIFPickerView: View { ], spacing: 4) { ForEach(viewModel.gifs) { gif in GIFThumbnailView(gif: gif, disable_animation: damus_state.settings.disable_animation) + .contentShape(Rectangle()) .onTapGesture { if let gifURL = gif.mediumURL ?? gif.fullURL { onGIFSelected(gifURL) @@ -178,6 +179,7 @@ struct GIFThumbnailView: View { .frame(height: 120) .clipped() .cornerRadius(8) + .kfClickable() } else { Rectangle() .fill(Color.secondary.opacity(0.2))