🐛 Bug fixes

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

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