From 784db4f1ddee2eb9b413a2def5fb28216f320482 Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Tue, 1 Dec 2026 02:02:14 -0500 Subject: [PATCH] open reaction image on long press anywhere in its tab --- lib/widgets/reactions/reactions_popover.dart | 21 ++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/lib/widgets/reactions/reactions_popover.dart b/lib/widgets/reactions/reactions_popover.dart index e8e475c..cf4b717 100644 --- a/lib/widgets/reactions/reactions_popover.dart +++ b/lib/widgets/reactions/reactions_popover.dart @@ -64,6 +64,7 @@ class const ReactionsPopover( controller: tabController, isScrollable: true, tabAlignment: .start, + labelPadding: .zero, tabs: keys.map((reaction) { void expand() => context.showImageViewer( ref, @@ -72,16 +73,20 @@ class const ReactionsPopover( final isImage = reaction.startsWith("mxc://"); return GestureDetector( + behavior: .opaque, onSecondaryTap: isImage ? expand : null, onLongPress: isImage ? expand : null, - child: Tab( - child: Row( - mainAxisSize: .min, - spacing: 8, - children: [ - ReactionKey(reaction, height: 20), - Text(reactions[reaction]!.senders.length.toString()), - ], + child: Padding( + padding: kTabLabelPadding, + child: Tab( + child: Row( + mainAxisSize: .min, + spacing: 8, + children: [ + ReactionKey(reaction, height: 20), + Text(reactions[reaction]!.senders.length.toString()), + ], + ), ), ), );