Merge branch 'fix-bubble-padding' into 'main'

Fix 2nd bubble padding

See merge request famedly/fluffychat!669
This commit is contained in:
Krille Fear 2022-01-03 16:06:38 +00:00
commit a61712e6f9

View File

@ -105,7 +105,6 @@ class Message extends StatelessWidget {
sameSender || ownMessage sameSender || ownMessage
? SizedBox( ? SizedBox(
width: Avatar.defaultSize, width: Avatar.defaultSize,
height: Avatar.defaultSize,
child: event.status == EventStatus.sending child: event.status == EventStatus.sending
? const Center( ? const Center(
child: SizedBox( child: SizedBox(
@ -280,14 +279,15 @@ class Message extends StatelessWidget {
)), )),
), ),
row, row,
Padding( if (event.hasAggregatedEvents(timeline, RelationshipTypes.reaction))
padding: EdgeInsets.only( Padding(
top: 4.0, padding: EdgeInsets.only(
left: (ownMessage ? 0 : Avatar.defaultSize) + 12.0, top: 4.0,
right: 12.0, left: (ownMessage ? 0 : Avatar.defaultSize) + 12.0,
right: 12.0,
),
child: MessageReactions(event, timeline),
), ),
child: MessageReactions(event, timeline),
),
], ],
); );
} else { } else {