chore: Adjust design of user viewer and popup buttons

This commit is contained in:
Christian Kußowski 2026-02-24 21:28:33 +01:00
commit 0052a15b54
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
3 changed files with 179 additions and 160 deletions

View file

@ -440,25 +440,16 @@ class ChatListController extends State<ChatList>
PopupMenuItem(
value: ChatContextAction.open,
child: Row(
mainAxisSize: .min,
spacing: 12.0,
children: [
Avatar(mxContent: room.avatar, name: displayname),
Avatar(mxContent: room.avatar, name: displayname, size: 24),
ConstrainedBox(
constraints: const BoxConstraints(maxWidth: 128),
child: Text(
displayname,
style: TextStyle(
color: Theme.of(context).colorScheme.onSurface,
),
maxLines: 2,
overflow: TextOverflow.ellipsis,
),
constraints: const BoxConstraints(maxWidth: 200),
child: Text(displayname, maxLines: 1, overflow: .ellipsis),
),
],
),
),
const PopupMenuDivider(),
if (space != null)
PopupMenuItem(
value: ChatContextAction.goToSpace,