Skip to content

Commit

Permalink
improve UX on smaller devices
Browse files Browse the repository at this point in the history
  • Loading branch information
mytja committed Feb 8, 2024
1 parent 8c6ddf7 commit ed8f8a0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tarok/lib/game/game.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 14 additions & 8 deletions tarok/lib/game/game_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
4 changes: 4 additions & 0 deletions tarok/lib/tms/tournaments.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit ed8f8a0

Please sign in to comment.