From 6b4ed7bdc8b777e44576bdb9a97c59a942ee1f2e Mon Sep 17 00:00:00 2001 From: krille-chan Date: Sun, 3 Nov 2024 11:22:45 +0100 Subject: [PATCH] chore: Follow up design --- lib/pages/chat/chat_event_list.dart | 2 +- lib/pages/chat/chat_view.dart | 11 +++++------ lib/pages/chat_list/chat_list_item.dart | 2 +- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/lib/pages/chat/chat_event_list.dart b/lib/pages/chat/chat_event_list.dart index e88bec3f2..57ac404ab 100644 --- a/lib/pages/chat/chat_event_list.dart +++ b/lib/pages/chat/chat_event_list.dart @@ -51,7 +51,7 @@ class ChatEventList extends StatelessWidget { child: ListView.custom( padding: EdgeInsets.only( top: 16, - bottom: 0, + bottom: 8, left: horizontalPadding, right: horizontalPadding, ), diff --git a/lib/pages/chat/chat_view.dart b/lib/pages/chat/chat_view.dart index 7b8e3c3ea..14c70459f 100644 --- a/lib/pages/chat/chat_view.dart +++ b/lib/pages/chat/chat_view.dart @@ -290,15 +290,14 @@ class ChatView extends StatelessWidget { child: ChatEventList(controller: controller), ), ), - if (controller.showScrollDownButton) - Divider( - height: 1, - color: theme.dividerColor, - ), if (controller.room.canSendDefaultMessages && controller.room.membership == Membership.join) Container( - margin: EdgeInsets.all(bottomSheetPadding), + margin: EdgeInsets.only( + bottom: bottomSheetPadding, + left: bottomSheetPadding, + right: bottomSheetPadding, + ), constraints: const BoxConstraints( maxWidth: FluffyThemes.columnWidth * 2.5, ), diff --git a/lib/pages/chat_list/chat_list_item.dart b/lib/pages/chat_list/chat_list_item.dart index 1fb0fc8a4..114b9cd68 100644 --- a/lib/pages/chat_list/chat_list_item.dart +++ b/lib/pages/chat_list/chat_list_item.dart @@ -339,7 +339,7 @@ class ChatListItem extends StatelessWidget { : snapshot.data ?? L10n.of(context).emptyChat, softWrap: false, - maxLines: 1, + maxLines: room.hasNewMessages ? 2 : 1, overflow: TextOverflow.ellipsis, style: TextStyle( fontWeight: unread || room.hasNewMessages