💄 Some changes to improve UX

This commit is contained in:
2025-09-07 01:31:41 +08:00
parent a22b94a263
commit 98dd9b6617
3 changed files with 49 additions and 42 deletions

View File

@@ -339,14 +339,16 @@ class _AccountPublisherList extends StatelessWidget {
for (final publisher in publishers)
ListTile(
title: Text(publisher.nick),
subtitle:
publisher.bio.isNotEmpty
? Text(
publisher.bio,
maxLines: 3,
overflow: TextOverflow.ellipsis,
)
: null,
subtitle: Text(
publisher.bio.isNotEmpty
? publisher.bio
.split('\n')
.where((line) => line.trim().isNotEmpty)
.join('\n')
: 'descriptionNone'.tr(),
maxLines: 3,
overflow: TextOverflow.ellipsis,
),
leading: ProfilePictureWidget(
file: publisher.picture,
borderRadius: publisher.type == 1 ? 8 : null,