Merge pull request #2959 from pangeachat/2954-lower-mentions-to-line-up-better
chore: fix alignment of mentions in html messages
This commit is contained in:
commit
dd6beaad4b
1 changed files with 6 additions and 0 deletions
|
|
@ -389,6 +389,9 @@ class HtmlMessage extends StatelessWidget {
|
|||
if (matrixId.sigil == '@') {
|
||||
final user = room.unsafeGetUserFromMemoryOrFallback(matrixId);
|
||||
return WidgetSpan(
|
||||
// #Pangea
|
||||
alignment: PlaceholderAlignment.middle,
|
||||
// Pangea#
|
||||
child: MatrixPill(
|
||||
key: Key('user_pill_$matrixId'),
|
||||
name: user.calcDisplayname(),
|
||||
|
|
@ -408,6 +411,9 @@ class HtmlMessage extends StatelessWidget {
|
|||
? this.room.client.getRoomById(matrixId)
|
||||
: this.room.client.getRoomByAlias(matrixId);
|
||||
return WidgetSpan(
|
||||
// #Pangea
|
||||
alignment: PlaceholderAlignment.middle,
|
||||
// Pangea#
|
||||
child: MatrixPill(
|
||||
name: room?.getLocalizedDisplayname() ?? matrixId,
|
||||
avatar: room?.avatar,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue