From be09b5830eee5a70c3417dcd8473dba1937f5886 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20B=C3=B6sche?= Date: Sat, 24 Jan 2026 04:38:43 +0100 Subject: [PATCH] Refactor Send Invitation button to use fixed width for better layout consistency --- .../widgets/organization_settings_dialog.dart | 39 ++++++++++--------- 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/b0esche_cloud/lib/widgets/organization_settings_dialog.dart b/b0esche_cloud/lib/widgets/organization_settings_dialog.dart index 7072ad9..419e059 100644 --- a/b0esche_cloud/lib/widgets/organization_settings_dialog.dart +++ b/b0esche_cloud/lib/widgets/organization_settings_dialog.dart @@ -584,25 +584,28 @@ class _OrganizationSettingsDialogState ), ), const SizedBox(height: 16), - ModernGlassButton( - onPressed: () { - if (_canManage) { - final username = usernameController.text.trim(); - if (username.isNotEmpty) { - _inviteUser(username, selectedRole); - usernameController.clear(); - } - } else { - ScaffoldMessenger.of(context).showSnackBar( - const SnackBar( - content: Text( - 'You do not have permission to send invitations', + SizedBox( + width: 120, + child: ModernGlassButton( + onPressed: () { + if (_canManage) { + final username = usernameController.text.trim(); + if (username.isNotEmpty) { + _inviteUser(username, selectedRole); + usernameController.clear(); + } + } else { + ScaffoldMessenger.of(context).showSnackBar( + const SnackBar( + content: Text( + 'You do not have permission to send invitations', + ), ), - ), - ); - } - }, - child: const Text('Send Invitation'), + ); + } + }, + child: const Text('Send Invitation'), + ), ), ], );