Skip to content

Commit

Permalink
chore: Follow up design
Browse files Browse the repository at this point in the history
  • Loading branch information
krille-chan committed Nov 3, 2024
1 parent 133e7ab commit 6b4ed7b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/pages/chat/chat_event_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class ChatEventList extends StatelessWidget {
child: ListView.custom(
padding: EdgeInsets.only(
top: 16,
bottom: 0,
bottom: 8,
left: horizontalPadding,
right: horizontalPadding,
),
Expand Down
11 changes: 5 additions & 6 deletions lib/pages/chat/chat_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/chat_list/chat_list_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6b4ed7b

Please sign in to comment.