From 0e4e8f6b91bd14029643700a7eb63f4188ce14bc Mon Sep 17 00:00:00 2001 From: Scriptbash <98601298+Scriptbash@users.noreply.github.com> Date: Thu, 27 Mar 2025 14:23:05 -0400 Subject: [PATCH] Limit authors to one line on publication cards --- lib/widgets/publication_card.dart | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/lib/widgets/publication_card.dart b/lib/widgets/publication_card.dart index 5146a2f5..4be3cc28 100644 --- a/lib/widgets/publication_card.dart +++ b/lib/widgets/publication_card.dart @@ -237,11 +237,6 @@ class _PublicationCardState extends State { ) ], ), - Text( - widget.title, - style: TextStyle(fontWeight: FontWeight.bold), - softWrap: true, - ), Text( AppLocalizations.of(context)! .publishedon(widget.publishedDate!), @@ -250,11 +245,15 @@ class _PublicationCardState extends State { fontSize: 13, ), ), - SizedBox(height: 5.0), + Text( + widget.title, + style: TextStyle(fontWeight: FontWeight.bold), + softWrap: true, + ), Text( '${getAuthorsNames(widget.authors)}', style: TextStyle(fontSize: 14, color: Colors.grey), - maxLines: 4, + maxLines: 1, overflow: TextOverflow.ellipsis, ), ],