design: Padding 1st msg

This commit is contained in:
S1m 2022-01-14 06:47:09 +00:00 committed by Krille Fear
parent d7bab1456c
commit 3e13e2cc2a

View File

@ -126,10 +126,10 @@ class Message extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: [
if (!ownMessage && !sameSender)
if (!sameSender)
Padding(
padding: const EdgeInsets.only(left: 8.0, bottom: 4),
child: event.room.isDirectChat
child: ownMessage || event.room.isDirectChat
? const SizedBox(height: 12)
: Text(
event.sender.calcDisplayname(),