From 2fd97ddecb184e9e8335ba8c7a4546ea83018c90 Mon Sep 17 00:00:00 2001 From: Julien Martin Date: Thu, 25 Jun 2026 16:32:56 +0200 Subject: [PATCH] =?UTF-8?q?fix(#131):=20aligner=20la=20g=C3=A9lule=20de=20?= =?UTF-8?q?statut=20sur=20l'en-t=C3=AAte=20parent.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le titre, le sélecteur de statut et le bouton fermer partagent le même padding : la gélule n'est plus collée au bord supérieur de la modale. Co-authored-by: Cursor --- .../admin/common/admin_parent_edit_modal.dart | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/frontend/lib/widgets/admin/common/admin_parent_edit_modal.dart b/frontend/lib/widgets/admin/common/admin_parent_edit_modal.dart index 41ceaa0..d4e63fd 100644 --- a/frontend/lib/widgets/admin/common/admin_parent_edit_modal.dart +++ b/frontend/lib/widgets/admin/common/admin_parent_edit_modal.dart @@ -472,12 +472,12 @@ class _AdminParentEditModalState extends State { child: Column( mainAxisSize: MainAxisSize.min, children: [ - Row( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Expanded( - child: Padding( - padding: const EdgeInsets.fromLTRB(18, 16, 12, 10), + Padding( + padding: const EdgeInsets.fromLTRB(18, 16, 4, 10), + child: Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded( child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ @@ -501,15 +501,20 @@ class _AdminParentEditModalState extends State { ], ), ), - ), - SizedBox(width: 160, child: _statusDropdown()), - const SizedBox(width: 4), - IconButton( - icon: const Icon(Icons.close), - onPressed: () => Navigator.of(context).pop(), - tooltip: 'Fermer', - ), - ], + const SizedBox(width: 12), + SizedBox(width: 160, child: _statusDropdown()), + IconButton( + padding: EdgeInsets.zero, + constraints: const BoxConstraints( + minWidth: 40, + minHeight: 40, + ), + icon: const Icon(Icons.close), + onPressed: () => Navigator.of(context).pop(), + tooltip: 'Fermer', + ), + ], + ), ), const Divider(height: 1), Padding(