Skip to content

Commit 73281dd

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

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
@@ -160,7 +160,8 @@ class ReactionChip extends StatelessWidget {
160160
children: [
161161
// So text-emoji chips are at least as tall as square-emoji
162162
// ones (probably a good thing).
163-
SizedBox(height: _squareEmojiScalerClamped(context).scale(_squareEmojiSize)),
163+
// 2 is for the `vertical: 1` padding around `emoji`.
164+
SizedBox(height: _squareEmojiScalerClamped(context).scale(_squareEmojiSize) + 2),
164165
Flexible( // [Flexible] to let text emojis expand if they can
165166
child: Padding(padding: const EdgeInsets.symmetric(horizontal: 3, vertical: 1),
166167
child: emoji)),

0 commit comments

Comments
 (0)