From 87af768dfd02f9d20850a399454c7f08f394844f Mon Sep 17 00:00:00 2001 From: Vishnu Mohandas Date: Tue, 10 Nov 2020 21:49:06 +0530 Subject: [PATCH] Ellipsis long collection names --- lib/ui/collections_gallery_widget.dart | 12 ++++++++---- lib/ui/shared_collections_gallery.dart | 12 ++++++++---- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/lib/ui/collections_gallery_widget.dart b/lib/ui/collections_gallery_widget.dart index 5e9bc802d..f6ca4d74b 100644 --- a/lib/ui/collections_gallery_widget.dart +++ b/lib/ui/collections_gallery_widget.dart @@ -233,10 +233,14 @@ class _CollectionsGalleryWidgetState extends State ), Padding(padding: EdgeInsets.all(2)), Expanded( - child: Text( - c.collection.name, - style: TextStyle( - fontSize: 16, + child: Padding( + padding: const EdgeInsets.fromLTRB(8, 0, 8, 0), + child: Text( + c.collection.name, + style: TextStyle( + fontSize: 16, + ), + overflow: TextOverflow.ellipsis, ), ), ), diff --git a/lib/ui/shared_collections_gallery.dart b/lib/ui/shared_collections_gallery.dart index 2919e1aef..5ea8736b5 100644 --- a/lib/ui/shared_collections_gallery.dart +++ b/lib/ui/shared_collections_gallery.dart @@ -231,10 +231,14 @@ class _SharedCollectionGalleryState extends State ), Padding(padding: EdgeInsets.all(2)), Expanded( - child: Text( - c.collection.name, - style: TextStyle( - fontSize: 16, + child: Padding( + padding: const EdgeInsets.fromLTRB(8, 0, 8, 0), + child: Text( + c.collection.name, + style: TextStyle( + fontSize: 16, + ), + overflow: TextOverflow.ellipsis, ), ), ),