A cross platform Audiobookshelf client for Android and iOS
Dart
Move the author up under the title when a book has no subtitle
Barnabasd7eb278a4555
diff --git a/lib/widgets/book_card.dart b/lib/widgets/book_card.dartindex 6ff76360..c4e45d89 100644--- a/lib/widgets/book_card.dart+++ b/lib/widgets/book_card.dart@@ -422,13 +422,13 @@ class BookCard extends StatelessWidget {),),),- // Subtitle. Keeps its line even when empty so the author lines stay- // level across a shelf.- if (showSubtitle)+ // Subtitle. A book without one hands the line to the author instead+ // of leaving a gap under the title.+ if (showSubtitle && subtitle.isNotEmpty)Padding(padding: const EdgeInsets.symmetric(horizontal: 2),child: Text(- subtitle.isEmpty ? ' ' : subtitle,+ subtitle,maxLines: 1,overflow: TextOverflow.ellipsis,style: tt.labelSmall?.copyWith(diff --git a/lib/widgets/library_grid_tiles.dart b/lib/widgets/library_grid_tiles.dartindex 79a37802..7f5350cc 100644--- a/lib/widgets/library_grid_tiles.dart+++ b/lib/widgets/library_grid_tiles.dart@@ -272,11 +272,11 @@ class _GridBookTileState extends State<GridBookTile> {fontSize: 11 * coverGridTextScale(context),),),- // Subtitle. Keeps its line even when empty so the author rows- // stay level across a row of tiles.- if (widget.showSubtitle)+ // Subtitle. A book without one hands the line to the author instead+ // of leaving a gap under the title.+ if (widget.showSubtitle && subtitle.isNotEmpty)Text(- subtitle.isEmpty ? ' ' : subtitle,+ subtitle,maxLines: 1,overflow: TextOverflow.ellipsis,style: tt.labelSmall?.copyWith(