🐛 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(
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(

View File

@ -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(

View File

@ -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}',
),
),
),
);