Skip to content

Commit 02e8262

Browse files
Merge pull request #1414 from saithsab877/fix/chat-status-display-positioning
Status UI component moved between Chat History and Chat Box for clear separation
2 parents 3c695b4 + fca5f06 commit 02e8262

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

src/people/hiveChat/ChatStatusDisplay.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const StatusContainer = styled.div<{ isError: boolean }>`
1212
align-items: center;
1313
border-radius: 8px;
1414
margin-top: auto;
15-
margin-bottom: 10px;
1615
box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
1716
`;
1817

src/people/hiveChat/index.tsx

+11-2
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ const ChatHistory = styled.div`
182182
position: relative;
183183
`;
184184

185+
const StatusWrapper = styled.div`
186+
margin-top: 20px;
187+
`;
188+
185189
const SplashContainer = styled.div`
186190
position: absolute;
187191
top: 50%;
@@ -1633,9 +1637,14 @@ export const HiveChatView: React.FC = observer(() => {
16331637
</p>
16341638
</MessageBubble>
16351639
)}
1636-
1637-
{chatStatus && <ChatStatusDisplay chatStatus={chatStatus} />}
16381640
</ChatHistory>
1641+
1642+
{chatStatus && (
1643+
<StatusWrapper>
1644+
<ChatStatusDisplay chatStatus={chatStatus} />
1645+
</StatusWrapper>
1646+
)}
1647+
16391648
<InputContainer>
16401649
<TextArea
16411650
value={message}

0 commit comments

Comments
 (0)