diff --git a/lib/widgets/attachment/attachment_item.dart b/lib/widgets/attachment/attachment_item.dart index 2548788..6227728 100644 --- a/lib/widgets/attachment/attachment_item.dart +++ b/lib/widgets/attachment/attachment_item.dart @@ -251,6 +251,7 @@ class _AttachmentItemContentVideoState return GestureDetector( behavior: HitTestBehavior.opaque, child: Stack( + fit: StackFit.expand, children: [ if (widget.data.thumbnail != null) AutoResizeUniversalImage( @@ -455,6 +456,7 @@ class _AttachmentItemContentAudioState return GestureDetector( behavior: HitTestBehavior.opaque, child: Stack( + fit: StackFit.expand, children: [ if (widget.data.thumbnail != null) AspectRatio( diff --git a/lib/widgets/post/fediverse_post_item.dart b/lib/widgets/post/fediverse_post_item.dart index 3495af5..d7378e1 100644 --- a/lib/widgets/post/fediverse_post_item.dart +++ b/lib/widgets/post/fediverse_post_item.dart @@ -42,6 +42,7 @@ class FediversePostWidget extends StatelessWidget { data.user.nick.isNotEmpty ? data.user.nick : '@${data.user.name}', + maxLines: 1, ).bold(), Row( children: [ @@ -49,6 +50,7 @@ class FediversePostWidget extends StatelessWidget { data.user.identifier.contains('@') ? data.user.identifier : '${data.user.identifier}@${data.user.origin}', + maxLines: 1, ).fontSize(13), const Gap(4), Text( diff --git a/lib/widgets/post/post_item.dart b/lib/widgets/post/post_item.dart index b027603..8a93460 100644 --- a/lib/widgets/post/post_item.dart +++ b/lib/widgets/post/post_item.dart @@ -1765,7 +1765,9 @@ class _PostVideoPlayer extends StatelessWidget { child: ClipRRect( borderRadius: const BorderRadius.all(Radius.circular(8)), child: AttachmentItem( - data: data.preload!.video!, heroTag: 'post-video-${data.id}'), + data: data.preload!.video!, + heroTag: 'post-video-${data.id}', + ), ), ), );