chore: give max width to activity participant indicator widgets (#4327)
This commit is contained in:
parent
df4410e85d
commit
ca8875f19b
1 changed files with 5 additions and 0 deletions
|
|
@ -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,
|
||||
),
|
||||
],
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue