From 0447695ded8cea304ea7054a962c97ae6bdaa888 Mon Sep 17 00:00:00 2001 From: Callum Moffat Date: Wed, 1 Nov 2023 00:15:08 +0100 Subject: [PATCH] Floating attachments cloverStyleRepliesButton Avoid trailing line from paragraph to keep consistent height below images --- lib/widgets/post_row.dart | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/widgets/post_row.dart b/lib/widgets/post_row.dart index b5c428120..47cf9784e 100644 --- a/lib/widgets/post_row.dart +++ b/lib/widgets/post_row.dart @@ -441,11 +441,13 @@ class PostRow extends StatelessWidget { )) ) ), - const TextSpan(text: '\n'), - // In practice this is the height of a line of text - const WidgetSpan( - child: SizedBox.shrink() - ) + if (!cloverStyleRepliesButton) ...[ + const TextSpan(text: '\n'), + // In practice this is the height of a line of text + const WidgetSpan( + child: SizedBox.shrink() + ) + ] ] ), overflow: TextOverflow.fade @@ -573,7 +575,7 @@ class PostRow extends StatelessWidget { ) ), if (cloverStyleRepliesButton) SizedBox( - height: 24 * settings.textScale + height: 48 * settings.textScale ) ] )