Fix input/message alignment on wide screens
- Add max-width 800px to message list and input area - Center align both components for consistent layout - Wrap input in container for full-width background Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -124,6 +124,11 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.input-area {
|
||||||
|
background: #16213e;
|
||||||
|
border-top: 1px solid #0f3460;
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
.user-list {
|
.user-list {
|
||||||
display: none;
|
display: none;
|
||||||
|
|||||||
@@ -169,7 +169,9 @@ function ChatRoom({ roomId, userName, onLeave }: ChatRoomProps) {
|
|||||||
|
|
||||||
<main className="messages-container">
|
<main className="messages-container">
|
||||||
<MessageList messages={messages} />
|
<MessageList messages={messages} />
|
||||||
<MessageInput onSend={handleSendMessage} disabled={!isConnected} />
|
<div className="input-area">
|
||||||
|
<MessageInput onSend={handleSendMessage} disabled={!isConnected} />
|
||||||
|
</div>
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -2,8 +2,10 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
background: #16213e;
|
max-width: 800px;
|
||||||
border-top: 1px solid #0f3460;
|
margin: 0 auto;
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.message-input .input-wrapper {
|
.message-input .input-wrapper {
|
||||||
|
|||||||
@@ -5,6 +5,10 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
|
max-width: 800px;
|
||||||
|
margin: 0 auto;
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.empty-state {
|
.empty-state {
|
||||||
|
|||||||
Reference in New Issue
Block a user