From 28331df082f8785d95ef240e365580f2c4eb9b3e Mon Sep 17 00:00:00 2001 From: Kelrap <99418823+Kelrap@users.noreply.github.com> Date: Tue, 28 Oct 2025 09:22:46 -0400 Subject: [PATCH] Make join button able to adjust size with L1 translation (#4525) --- .../activity_template_chat_list_item.dart | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/pangea/course_chats/activity_template_chat_list_item.dart b/lib/pangea/course_chats/activity_template_chat_list_item.dart index dc4dc52e9..cd19b3c88 100644 --- a/lib/pangea/course_chats/activity_template_chat_list_item.dart +++ b/lib/pangea/course_chats/activity_template_chat_list_item.dart @@ -94,6 +94,7 @@ class ActivityTemplateChatListItem extends StatelessWidget { left: 14.0, ), child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Expanded( child: OpenRolesIndicator( @@ -102,16 +103,20 @@ class ActivityTemplateChatListItem extends StatelessWidget { space: space, ), ), - SizedBox( - height: 24.0, - width: 40.0, + ConstrainedBox( + constraints: const BoxConstraints( + maxHeight: 24.0, + ), child: ElevatedButton( onPressed: () => showFutureLoadingDialog( context: context, future: () => joinActivity(e), ), style: ElevatedButton.styleFrom( - padding: const EdgeInsets.all(0), + padding: const EdgeInsets.only( + left: 8.0, + right: 8.0, + ), ), child: Text( L10n.of(context).join,