Skip to content

Commit 2842951

Browse files
committed
msglist: Adjust horizontal padding in recipient headers
Design specifies 16px horizontal padding in recipient headers, see zulip/zulip-mobile#5511 . Also adjusted message timestamps so they line up with the new headers.
1 parent 9067f7a commit 2842951

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/widgets/message_list.dart

+4-4
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ class StreamMessageRecipientHeader extends StatelessWidget {
561561

562562
final Widget streamWidget;
563563
if (!showStream) {
564-
streamWidget = const SizedBox.shrink();
564+
streamWidget = const SizedBox(width: 16);
565565
} else {
566566
final stream = store.streams[message.streamId];
567567
final streamName = stream?.name ?? message.displayRecipient; // TODO(log) if missing
@@ -653,7 +653,7 @@ class RecipientHeaderDate extends StatelessWidget {
653653
@override
654654
Widget build(BuildContext context) {
655655
return Padding(
656-
padding: const EdgeInsets.fromLTRB(10, 0, 10, 0),
656+
padding: const EdgeInsets.fromLTRB(10, 0, 16, 0),
657657
child: Text(
658658
style: _kRecipientHeaderDateStyle,
659659
_kRecipientHeaderDateFormat.format(
@@ -687,7 +687,7 @@ class RecipientHeaderChevronContainer extends StatelessWidget {
687687
decoration: ShapeDecoration(color: color, shape: recipientBorderShape),
688688
padding: const EdgeInsets.only(right: chevronLength),
689689
child: Padding(
690-
padding: const EdgeInsets.fromLTRB(6, 4, 6, 3), child: child));
690+
padding: const EdgeInsets.fromLTRB(16, 4, 6, 3), child: child));
691691
}
692692
}
693693

@@ -738,7 +738,7 @@ class MessageWithPossibleSender extends StatelessWidget {
738738
])),
739739
Container(
740740
width: 80,
741-
padding: const EdgeInsets.only(top: 4, right: 2),
741+
padding: const EdgeInsets.only(top: 4, right: 16 - 8),
742742
alignment: Alignment.topRight,
743743
child: Text(time, style: _kMessageTimestampStyle)),
744744
])));

0 commit comments

Comments
 (0)