From 6f06c6a054024703552a705161d57cc6336bcacf Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sat, 13 Feb 2021 13:20:01 +0100 Subject: [PATCH] fix: Stories displayname cropping --- lib/components/horizontal_stories_list.dart | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/lib/components/horizontal_stories_list.dart b/lib/components/horizontal_stories_list.dart index 1fd7a8fe..ac150031 100644 --- a/lib/components/horizontal_stories_list.dart +++ b/lib/components/horizontal_stories_list.dart @@ -141,14 +141,18 @@ class _StoriesListTile extends StatelessWidget { ], ), ), - SizedBox(height: 4), - Text(displayname.split(' ').first, - style: TextStyle( - fontWeight: hasStatusMessage ? FontWeight.bold : null, - color: hasStatusMessage - ? Theme.of(context).accentColor - : null, - )), + Padding( + padding: + const EdgeInsets.only(left: 4.0, right: 4.0, top: 4.0), + child: Text(displayname.split(' ').first, + maxLines: 1, + style: TextStyle( + fontWeight: hasStatusMessage ? FontWeight.bold : null, + color: hasStatusMessage + ? Theme.of(context).accentColor + : null, + )), + ), ], ), ),