make pmp via text smaller
This commit is contained in:
parent
1d6a121ec4
commit
ebbb4dc662
1 changed files with 24 additions and 9 deletions
|
|
@ -30,8 +30,12 @@ class MessageDisplayname extends ConsumerWidget {
|
||||||
globalPosition: details.globalPosition,
|
globalPosition: details.globalPosition,
|
||||||
)
|
)
|
||||||
: null,
|
: null,
|
||||||
child: Text(
|
child: Row(
|
||||||
"${membership.displayName ?? event.sender.localpart}${event.pmp == null ? "" : " (via ${event.sender})"}",
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
spacing: 4,
|
||||||
|
children: [
|
||||||
|
Text(
|
||||||
|
membership.displayName ?? event.sender.localpart,
|
||||||
style:
|
style:
|
||||||
style ??
|
style ??
|
||||||
TextStyle(
|
TextStyle(
|
||||||
|
|
@ -41,6 +45,17 @@ class MessageDisplayname extends ConsumerWidget {
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
|
|
||||||
|
if (event.pmp != null)
|
||||||
|
Text(
|
||||||
|
"(via ${event.sender})",
|
||||||
|
style: Theme.of(context).textTheme.labelSmall?.copyWith(
|
||||||
|
color: event.sender.colorHash,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
loading: () => Text(""),
|
loading: () => Text(""),
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue