From ed8f8a01d70005bd9ae16950fa220b6969b18046 Mon Sep 17 00:00:00 2001 From: mytja Date: Thu, 8 Feb 2024 01:45:03 +0100 Subject: [PATCH] improve UX on smaller devices --- tarok/lib/game/game.dart | 2 +- tarok/lib/game/game_controller.dart | 22 ++++++++++++++-------- tarok/lib/tms/tournaments.dart | 4 ++++ 3 files changed, 19 insertions(+), 9 deletions(-) diff --git a/tarok/lib/game/game.dart b/tarok/lib/game/game.dart index c565fa3..91a2ccc 100644 --- a/tarok/lib/game/game.dart +++ b/tarok/lib/game/game.dart @@ -322,7 +322,7 @@ class Game extends StatelessWidget { .tournamentGameStatistics.isNotEmpty) Text( "other_players_are_playing".tr, - style: const TextStyle(fontSize: 18), + style: const TextStyle(fontSize: 13), ), ...controller.tournamentGameStatistics, if (controller diff --git a/tarok/lib/game/game_controller.dart b/tarok/lib/game/game_controller.dart index f99ab85..48cf6f6 100644 --- a/tarok/lib/game/game_controller.dart +++ b/tarok/lib/game/game_controller.dart @@ -1598,16 +1598,22 @@ class GameController extends GetxController { a.sort((a, b) => b.amount.compareTo(a.amount)); for (int i = 0; i < a.length; i++) { if (a[i].bots) { - tournamentGameStatistics.add(Text("bot_plays".trParams({ - "game": stockskis.GAMES[a[i].game + 1].name.tr, - "times": a[i].amount.toString(), - }))); + tournamentGameStatistics.add(Text( + "bot_plays".trParams({ + "game": stockskis.GAMES[a[i].game + 1].name.tr, + "times": a[i].amount.toString(), + }), + style: const TextStyle(fontSize: 10), + )); continue; } - tournamentGameStatistics.add(Text("player_plays".trParams({ - "game": stockskis.GAMES[a[i].game + 1].name.tr, - "times": a[i].amount.toString(), - }))); + tournamentGameStatistics.add(Text( + "player_plays".trParams({ + "game": stockskis.GAMES[a[i].game + 1].name.tr, + "times": a[i].amount.toString(), + }), + style: const TextStyle(fontSize: 10), + )); } tournamentGameStatistics.refresh(); } diff --git a/tarok/lib/tms/tournaments.dart b/tarok/lib/tms/tournaments.dart index 5d21d5e..e75944c 100644 --- a/tarok/lib/tms/tournaments.dart +++ b/tarok/lib/tms/tournaments.dart @@ -49,6 +49,10 @@ class Tournaments extends StatelessWidget { const SizedBox( height: 20, ), + const Divider(), + const SizedBox( + height: 20, + ), Text( "past_tournaments".tr, style: const TextStyle(fontSize: 30),