Skip to content

Commit db766d2

Browse files
committed
reactions: (Actually) make text-emoji chip's height consistent with others
Fixes: #441
1 parent 01e4f14 commit db766d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/widgets/emoji_reaction.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ class ReactionChip extends StatelessWidget {
161161
children: [
162162
// So text-emoji chips are at least as tall as square-emoji
163163
// ones (probably a good thing).
164-
SizedBox(height: _squareEmojiScalerClamped(context).scale(_squareEmojiSize)),
164+
// 2 is for the `vertical: 1` padding around `emoji`.
165+
SizedBox(height: _squareEmojiScalerClamped(context).scale(_squareEmojiSize) + 2),
165166
Flexible( // [Flexible] to let text emojis expand if they can
166167
child: Padding(padding: const EdgeInsets.symmetric(horizontal: 3, vertical: 1),
167168
child: emoji)),

0 commit comments

Comments
 (0)