chore: Adjust design of user viewer and popup buttons
This commit is contained in:
parent
2408568f36
commit
0052a15b54
3 changed files with 179 additions and 160 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue