diff --git a/packages/message-sdk/src/components/Inbox.tsx b/packages/message-sdk/src/components/Inbox.tsx index 3e1044d7e..f32a21942 100644 --- a/packages/message-sdk/src/components/Inbox.tsx +++ b/packages/message-sdk/src/components/Inbox.tsx @@ -108,24 +108,30 @@ export function Inbox() { )} - {!messagesLoading && searchFilter.length < 3 && activeChats.length === 0 && ( -
- {" "} - } - title={"No messages"} - subtitle={"Search for someone to send a message to!"} - /> -
- )} + {!messagesLoading && + searchFilter.length < 3 && + activeChats.length === 0 && ( +
+ {" "} + } + title={"No messages"} + subtitle={"Search for someone to send a message!"} + style={{ + paddingLeft: 0, + paddingRight: 0, + }} + /> +
+ )} ); } diff --git a/packages/react-common/src/components/base/EmptyState.tsx b/packages/react-common/src/components/base/EmptyState.tsx index 424df5a2a..5f88af146 100644 --- a/packages/react-common/src/components/base/EmptyState.tsx +++ b/packages/react-common/src/components/base/EmptyState.tsx @@ -9,9 +9,10 @@ export const EmptyState: React.FC<{ subtitle: string; buttonText?: string; onClick?: () => void; - contentStyle?: React.CSSProperties; minimize?: boolean; verticallyCentered?: boolean; + contentStyle?: React.CSSProperties; + style?: React.CSSProperties; }> = ({ icon, title, @@ -19,6 +20,7 @@ export const EmptyState: React.FC<{ buttonText, onClick, contentStyle, + style, minimize, verticallyCentered = true, }) => { @@ -34,6 +36,7 @@ export const EmptyState: React.FC<{ display: "flex", flexDirection: "column", justifyContent: "center", + ...style, }} >