Skip to content

Commit 1e96340

Browse files
authored
Limit authors to one line on publication cards (#95)
1 parent d4bcf55 commit 1e96340

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

lib/widgets/publication_card.dart

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,6 @@ class _PublicationCardState extends State<PublicationCard> {
237237
)
238238
],
239239
),
240-
Text(
241-
widget.title,
242-
style: TextStyle(fontWeight: FontWeight.bold),
243-
softWrap: true,
244-
),
245240
Text(
246241
AppLocalizations.of(context)!
247242
.publishedon(widget.publishedDate!),
@@ -250,11 +245,15 @@ class _PublicationCardState extends State<PublicationCard> {
250245
fontSize: 13,
251246
),
252247
),
253-
SizedBox(height: 5.0),
248+
Text(
249+
widget.title,
250+
style: TextStyle(fontWeight: FontWeight.bold),
251+
softWrap: true,
252+
),
254253
Text(
255254
'${getAuthorsNames(widget.authors)}',
256255
style: TextStyle(fontSize: 14, color: Colors.grey),
257-
maxLines: 4,
256+
maxLines: 1,
258257
overflow: TextOverflow.ellipsis,
259258
),
260259
],

0 commit comments

Comments
 (0)