🐛 Bug fixes

This commit is contained in:
LittleSheep 2025-03-15 15:44:56 +08:00
parent ddd6ff7eee
commit 78e765f69d
3 changed files with 7 additions and 1 deletions

View File

@ -251,6 +251,7 @@ class _AttachmentItemContentVideoState
return GestureDetector( return GestureDetector(
behavior: HitTestBehavior.opaque, behavior: HitTestBehavior.opaque,
child: Stack( child: Stack(
fit: StackFit.expand,
children: [ children: [
if (widget.data.thumbnail != null) if (widget.data.thumbnail != null)
AutoResizeUniversalImage( AutoResizeUniversalImage(
@ -455,6 +456,7 @@ class _AttachmentItemContentAudioState
return GestureDetector( return GestureDetector(
behavior: HitTestBehavior.opaque, behavior: HitTestBehavior.opaque,
child: Stack( child: Stack(
fit: StackFit.expand,
children: [ children: [
if (widget.data.thumbnail != null) if (widget.data.thumbnail != null)
AspectRatio( AspectRatio(

View File

@ -42,6 +42,7 @@ class FediversePostWidget extends StatelessWidget {
data.user.nick.isNotEmpty data.user.nick.isNotEmpty
? data.user.nick ? data.user.nick
: '@${data.user.name}', : '@${data.user.name}',
maxLines: 1,
).bold(), ).bold(),
Row( Row(
children: [ children: [
@ -49,6 +50,7 @@ class FediversePostWidget extends StatelessWidget {
data.user.identifier.contains('@') data.user.identifier.contains('@')
? data.user.identifier ? data.user.identifier
: '${data.user.identifier}@${data.user.origin}', : '${data.user.identifier}@${data.user.origin}',
maxLines: 1,
).fontSize(13), ).fontSize(13),
const Gap(4), const Gap(4),
Text( Text(

View File

@ -1765,7 +1765,9 @@ class _PostVideoPlayer extends StatelessWidget {
child: ClipRRect( child: ClipRRect(
borderRadius: const BorderRadius.all(Radius.circular(8)), borderRadius: const BorderRadius.all(Radius.circular(8)),
child: AttachmentItem( child: AttachmentItem(
data: data.preload!.video!, heroTag: 'post-video-${data.id}'), data: data.preload!.video!,
heroTag: 'post-video-${data.id}',
),
), ),
), ),
); );