refactor: Nicer popupmenus

This commit is contained in:
Christian Kußowski 2025-06-16 18:21:10 +02:00
commit 37d313c271
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
3 changed files with 41 additions and 31 deletions

View file

@ -550,17 +550,21 @@ class ChatListController extends State<ChatList>
value: ChatContextAction.open,
child: Row(
mainAxisSize: MainAxisSize.min,
spacing: 12.0,
children: [
Avatar(
mxContent: room.avatar,
size: Avatar.defaultSize / 2,
name: displayname,
),
const SizedBox(width: 12),
Text(
displayname,
style:
TextStyle(color: Theme.of(context).colorScheme.onSurface),
ConstrainedBox(
constraints: const BoxConstraints(maxWidth: 128),
child: Text(
displayname,
style:
TextStyle(color: Theme.of(context).colorScheme.onSurface),
maxLines: 2,
overflow: TextOverflow.ellipsis,
),
),
],
),