fix: Stories displayname cropping

This commit is contained in:
Christian Pauly 2021-02-13 13:20:01 +01:00
parent d7d3b301fd
commit 6f06c6a054
1 changed files with 12 additions and 8 deletions

View File

@ -141,14 +141,18 @@ class _StoriesListTile extends StatelessWidget {
], ],
), ),
), ),
SizedBox(height: 4), Padding(
Text(displayname.split(' ').first, padding:
style: TextStyle( const EdgeInsets.only(left: 4.0, right: 4.0, top: 4.0),
fontWeight: hasStatusMessage ? FontWeight.bold : null, child: Text(displayname.split(' ').first,
color: hasStatusMessage maxLines: 1,
? Theme.of(context).accentColor style: TextStyle(
: null, fontWeight: hasStatusMessage ? FontWeight.bold : null,
)), color: hasStatusMessage
? Theme.of(context).accentColor
: null,
)),
),
], ],
), ),
), ),