Skip to content

Commit a9a3efe

Browse files
committed
msglist: Further tweak layout of message metadata to match web
1 parent 00a287b commit a9a3efe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/message_list.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,11 @@ class MessageWithSender extends StatelessWidget {
236236

237237
// TODO clean up this layout, by less precisely imitating web
238238
return Padding(
239-
padding: const EdgeInsets.symmetric(vertical: 4, horizontal: 8),
239+
padding: const EdgeInsets.only(top: 2, bottom: 3, left: 8, right: 8),
240240
child: Row(crossAxisAlignment: CrossAxisAlignment.start, children: [
241241
if (avatarUrl != null)
242242
Padding(
243-
padding: const EdgeInsets.fromLTRB(0, 6, 11, 0),
243+
padding: const EdgeInsets.fromLTRB(3, 6, 11, 0),
244244
child: Container(
245245
clipBehavior: Clip.antiAlias,
246246
decoration: const BoxDecoration(
@@ -255,6 +255,7 @@ class MessageWithSender extends StatelessWidget {
255255
const SizedBox(height: 3),
256256
Text(message.sender_full_name, // TODO get from user data
257257
style: const TextStyle(fontWeight: FontWeight.bold)),
258+
const SizedBox(height: 4),
258259
MessageContent(message: message),
259260
])),
260261
Container(

0 commit comments

Comments
 (0)