diff --git a/docs/prompt.md b/docs/prompt.md index 3a5e3dc..935917c 100644 --- a/docs/prompt.md +++ b/docs/prompt.md @@ -1,6 +1,6 @@ # Prompts -Folgende Prompts wurden auf Englisch geschrieben. +Folgende Prompts wurden auf Englisch geschrieben. Verwendetes Model: Claude Sonnet 4.5 ## 11.03.2026 @@ -30,3 +30,8 @@ Folgende Dateien wurden in diesem Prompt verändert: - frontend_splatournament_manager/lib/pages/teams_page.dart (gelöscht) - frontend_splatournament_manager/lib/widgets/teams_list_widget.dart - frontend_splatournament_manager/lib/widgets/my_teams_widget.dart + +- Center the team avatar vertically in the list views.

+Folgende Dateien wurden in diesem Prompt verändert: + - frontend_splatournament_manager/lib/widgets/teams_list_widget.dart + - frontend_splatournament_manager/lib/widgets/my_teams_widget.dart diff --git a/frontend_splatournament_manager/lib/widgets/my_teams_widget.dart b/frontend_splatournament_manager/lib/widgets/my_teams_widget.dart index b770e74..9ee756b 100644 --- a/frontend_splatournament_manager/lib/widgets/my_teams_widget.dart +++ b/frontend_splatournament_manager/lib/widgets/my_teams_widget.dart @@ -56,27 +56,17 @@ class _MyTeamsWidgetState extends State { final memberCountText = team.memberCount != null ? '${team.memberCount}/4 members' : 'No members'; + final description = team.description.isEmpty ? 'No description' : team.description; return Card( margin: const EdgeInsets.only(bottom: 12), child: ListTile( leading: CircleAvatar(child: Text(team.tag)), title: Text(team.name), - subtitle: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text(team.description.isEmpty ? 'No description' : team.description), - const SizedBox(height: 4), - Text( - memberCountText, - style: const TextStyle( - fontSize: 12, - fontWeight: FontWeight.w500, - ), - ), - ], + subtitle: Text( + '$description\n$memberCountText', + style: const TextStyle(fontSize: 14), ), - isThreeLine: true, trailing: IconButton( icon: const Icon(Icons.logout, color: Colors.red), onPressed: () => _leaveTeam(team), diff --git a/frontend_splatournament_manager/lib/widgets/teams_list_widget.dart b/frontend_splatournament_manager/lib/widgets/teams_list_widget.dart index 2f96348..fabeebd 100644 --- a/frontend_splatournament_manager/lib/widgets/teams_list_widget.dart +++ b/frontend_splatournament_manager/lib/widgets/teams_list_widget.dart @@ -52,27 +52,17 @@ class TeamListItem extends StatelessWidget { final memberCountText = team.memberCount != null ? '${team.memberCount}/4 members' : 'No members'; + final description = team.description.isEmpty ? 'No description' : team.description; return Card( margin: const EdgeInsets.only(bottom: 12), child: ListTile( leading: CircleAvatar(child: Text(team.tag)), title: Text(team.name), - subtitle: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text(team.description.isEmpty ? 'No description' : team.description), - const SizedBox(height: 4), - Text( - memberCountText, - style: const TextStyle( - fontSize: 12, - fontWeight: FontWeight.w500, - ), - ), - ], + subtitle: Text( + '$description\n$memberCountText', + style: const TextStyle(fontSize: 14), ), - isThreeLine: true, trailing: PopupMenuButton( icon: const Icon(Icons.more_vert), itemBuilder: (context) => [