Make join button able to adjust size with L1 translation (#4525)

This commit is contained in:
Kelrap 2025-10-28 09:22:46 -04:00 committed by GitHub
parent 1fe9e211a5
commit 28331df082
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,