From 4a6d261bfd223339afc794355de5606afd747e3f Mon Sep 17 00:00:00 2001 From: Justin Date: Wed, 5 Oct 2022 15:25:56 -0400 Subject: [PATCH] Improve UX of chat messages --- .../features/chats/components/chat-message-list-intro.tsx | 2 +- app/soapbox/features/chats/components/chat-message-list.tsx | 3 ++- app/soapbox/features/chats/components/chat-settings.tsx | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/soapbox/features/chats/components/chat-message-list-intro.tsx b/app/soapbox/features/chats/components/chat-message-list-intro.tsx index ebc4d1dd8..bad84c183 100644 --- a/app/soapbox/features/chats/components/chat-message-list-intro.tsx +++ b/app/soapbox/features/chats/components/chat-message-list-intro.tsx @@ -50,7 +50,7 @@ const ChatMessageListIntro = () => { className={ classNames({ 'w-3/4 mx-auto': needsAcceptance, - 'mt-6': true, + 'py-6': true, // needs to be padding to prevent Virtuoso bugs }) } > diff --git a/app/soapbox/features/chats/components/chat-message-list.tsx b/app/soapbox/features/chats/components/chat-message-list.tsx index 887cca4f0..789e0ad3d 100644 --- a/app/soapbox/features/chats/components/chat-message-list.tsx +++ b/app/soapbox/features/chats/components/chat-message-list.tsx @@ -392,6 +392,7 @@ const ChatMessageList: React.FC = ({ chat, autosize }) => {
= ({ chat, autosize }) => { } if (!hasNextPage && !isLoading) { - return
; + return ; } return null; diff --git a/app/soapbox/features/chats/components/chat-settings.tsx b/app/soapbox/features/chats/components/chat-settings.tsx index f529d0b1d..372f0c15a 100644 --- a/app/soapbox/features/chats/components/chat-settings.tsx +++ b/app/soapbox/features/chats/components/chat-settings.tsx @@ -111,13 +111,13 @@ const ChatSettings = () => { -