chore: give max width to activity participant indicator widgets (#4327)

This commit is contained in:
ggurdin 2025-10-10 11:45:40 -04:00 committed by GitHub
parent df4410e85d
commit ca8875f19b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -66,6 +66,7 @@ class ActivityParticipantIndicator extends StatelessWidget {
? theme.colorScheme.surfaceContainerHighest
: Colors.transparent,
),
constraints: const BoxConstraints(maxWidth: 200.0),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
@ -103,6 +104,7 @@ class ActivityParticipantIndicator extends StatelessWidget {
style: const TextStyle(
fontSize: 12.0,
),
textAlign: TextAlign.center,
),
Text(
userId?.localpart ?? L10n.of(context).openRoleLabel,
@ -114,6 +116,9 @@ class ActivityParticipantIndicator extends StatelessWidget {
: (userId?.localpart?.lightColorText ??
name.lightColorText)),
),
textAlign: TextAlign.center,
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
],
),