From d1eb51c596e53ec91988230ac732ce02572e47ca Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 22 Dec 2024 17:30:41 +0800 Subject: [PATCH] :lipstick: Optimize styling --- lib/screens/explore.dart | 6 +++--- lib/widgets/chat/chat_message.dart | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/screens/explore.dart b/lib/screens/explore.dart index 71cbdbb..0687547 100644 --- a/lib/screens/explore.dart +++ b/lib/screens/explore.dart @@ -181,11 +181,11 @@ class _ExploreScreenState extends State { const Gap(8), ], bottom: PreferredSize( - preferredSize: const Size.fromHeight(40), + preferredSize: const Size.fromHeight(50), child: SizedBox( - height: 40, + height: 50, child: ListView.builder( - padding: const EdgeInsets.only(left: 8, right: 8, bottom: 8), + padding: const EdgeInsets.only(left: 8, right: 8, bottom: 12), scrollDirection: Axis.horizontal, itemCount: _categories.length, itemBuilder: (context, idx) { diff --git a/lib/widgets/chat/chat_message.dart b/lib/widgets/chat/chat_message.dart index d7b19f5..8c46383 100644 --- a/lib/widgets/chat/chat_message.dart +++ b/lib/widgets/chat/chat_message.dart @@ -142,7 +142,7 @@ class ChatMessage extends StatelessWidget { onEdit: onEdit, onDelete: onDelete, ), - )).padding(bottom: 4, top: isMerged ? 4 : 2), + )).padding(bottom: 4, top: 4), switch (data.type) { 'messages.new' => _ChatMessageText(data: data), _ => _ChatMessageSystemNotify(data: data),