Skip to content

Commit

Permalink
Floating attachments cloverStyleRepliesButton
Browse files Browse the repository at this point in the history
Avoid trailing line from paragraph to keep consistent height below images
  • Loading branch information
moffatman committed Jul 5, 2024
1 parent a8e46fc commit d13ffd4
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions lib/widgets/post_row.dart
Original file line number Diff line number Diff line change
Expand Up @@ -445,11 +445,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
Expand Down Expand Up @@ -578,7 +580,7 @@ class PostRow extends StatelessWidget {
)
),
if (cloverStyleRepliesButton) SizedBox(
height: 24 * settings.textScale
height: 48 * settings.textScale
)
]
)
Expand Down

0 comments on commit d13ffd4

Please sign in to comment.