From 1f985f5b370470e360630ca1273f6cdd82eeebc0 Mon Sep 17 00:00:00 2001 From: Julien Martin Date: Fri, 25 Sep 2026 16:30:40 +0200 Subject: [PATCH] =?UTF-8?q?fix(#173):=20dates=20en=20Merienda,=20plus=20gr?= =?UTF-8?q?andes,=20indent=C3=A9es=20;=20sans=20motif?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Retire l’affichage du commentaire / motif sur la bulle. Co-authored-by: Cursor --- .../lib/widgets/quotidien/cartes_feed.dart | 73 +++++++++---------- 1 file changed, 35 insertions(+), 38 deletions(-) diff --git a/frontend/lib/widgets/quotidien/cartes_feed.dart b/frontend/lib/widgets/quotidien/cartes_feed.dart index f827ebb..12ed221 100644 --- a/frontend/lib/widgets/quotidien/cartes_feed.dart +++ b/frontend/lib/widgets/quotidien/cartes_feed.dart @@ -395,44 +395,41 @@ class _BulleTile extends StatelessWidget { ), if (card.dateDebut != null || card.dateFin != null) ...[ const SizedBox(height: 10), - if (memeJour) - Text( - 'Le ${_fmtLong(card.dateDebut)}', - style: GoogleFonts.merriweather( - fontSize: 14, - color: QuotidienTheme.ink, - height: 1.35, - ), - ) - else ...[ - Text( - 'Du ${_fmtLong(card.dateDebut)}', - style: GoogleFonts.merriweather( - fontSize: 14, - color: QuotidienTheme.ink, - height: 1.35, - ), - ), - Text( - 'Au ${_fmtLong(card.dateFin)}', - style: GoogleFonts.merriweather( - fontSize: 14, - color: QuotidienTheme.ink, - height: 1.35, - ), - ), - ], - ], - if (card.motif != null && card.motif!.trim().isNotEmpty) ...[ - const SizedBox(height: 6), - Text( - card.motif!, - maxLines: 2, - overflow: TextOverflow.ellipsis, - style: GoogleFonts.merriweather( - fontSize: 12, - color: QuotidienTheme.muted, - ), + Padding( + padding: const EdgeInsets.only(left: 12), + child: memeJour + ? Text( + 'Le ${_fmtLong(card.dateDebut)}', + style: GoogleFonts.merienda( + fontSize: 17, + fontWeight: FontWeight.w600, + color: QuotidienTheme.ink, + height: 1.35, + ), + ) + : Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + 'Du ${_fmtLong(card.dateDebut)}', + style: GoogleFonts.merienda( + fontSize: 17, + fontWeight: FontWeight.w600, + color: QuotidienTheme.ink, + height: 1.35, + ), + ), + Text( + 'Au ${_fmtLong(card.dateFin)}', + style: GoogleFonts.merienda( + fontSize: 17, + fontWeight: FontWeight.w600, + color: QuotidienTheme.ink, + height: 1.35, + ), + ), + ], + ), ), ], if (card.statut == CarteStatut.refusee) ...[