Skip to content

Commit 95f6942

Browse files
committed
msglist: Fix recipient header date alignment for RTL layouts.
Previously, the TODAY (and other date) labels in recipient headers used, which applied asymmetric left/right padding only in LTR layouts. This caused the label to be misaligned in RTL layouts, as seen in screenshots from #2005. Change to use , so the start/end padding swaps correctly in RTL, matching the alignment of message timestamps and improving visual consistency.
1 parent fa947a1 commit 95f6942

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/widgets/message_list.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1953,7 +1953,7 @@ class RecipientHeaderDate extends StatelessWidget {
19531953
@override
19541954
Widget build(BuildContext context) {
19551955
return Padding(
1956-
padding: const EdgeInsets.fromLTRB(10, 0, 16, 0),
1956+
padding: const EdgeInsetsDirectional.fromSTEB(10, 0, 16, 0),
19571957
child: DateText(
19581958
fontSize: 16,
19591959
// In Figma this has a line-height of 19, but using 18

0 commit comments

Comments
 (0)