From 69b7359b96299823c9155fd3e794820f10755fe7 Mon Sep 17 00:00:00 2001 From: Krille Fear Date: Mon, 22 Nov 2021 19:20:09 +0100 Subject: [PATCH] fix: Give message edits padding --- lib/pages/chat/events/message.dart | 31 ++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/lib/pages/chat/events/message.dart b/lib/pages/chat/events/message.dart index b924e0c3..bf5243eb 100644 --- a/lib/pages/chat/events/message.dart +++ b/lib/pages/chat/events/message.dart @@ -220,22 +220,25 @@ class Message extends StatelessWidget { ), if (event.hasAggregatedEvents( timeline, RelationshipTypes.edit)) - Row( - mainAxisSize: MainAxisSize.min, - children: [ - Icon( - Icons.edit_outlined, - color: textColor.withAlpha(164), - size: 14, - ), - Text( - ' - ${displayEvent.originServerTs.localizedTimeShort(context)}', - style: TextStyle( + Padding( + padding: const EdgeInsets.only(top: 4.0), + child: Row( + mainAxisSize: MainAxisSize.min, + children: [ + Icon( + Icons.edit_outlined, color: textColor.withAlpha(164), - fontSize: 12, + size: 14, ), - ), - ], + Text( + ' - ${displayEvent.originServerTs.localizedTimeShort(context)}', + style: TextStyle( + color: textColor.withAlpha(164), + fontSize: 12, + ), + ), + ], + ), ), ], ),