feat: improve chat room UI and scrolling behavior

- Added automatic scrolling to bottom of messages in chat room
- Updated CSS to handle app and chat container height more precisely
- Implemented scrollToBottom function for messages container
- Ensured messages scroll automatically on new message or send
- Removed unnecessary port mapping in docker-compose.yml
This commit is contained in:
Juan Sebastián Montoya 2025-03-06 23:45:25 -05:00
parent 1e5a035d33
commit 1e3b188d90
3 changed files with 22 additions and 5 deletions

View file

@ -65,7 +65,8 @@ body {
.app {
display: flex;
flex-direction: column;
min-height: 100vh;
height: calc(100vh - 4rem);
overflow: hidden;
}
.app-header {
@ -81,6 +82,8 @@ body {
.app-main {
flex: 1;
padding: 1rem;
height: 100%;
overflow: hidden;
}
/* Auth styles */
@ -185,7 +188,8 @@ button:disabled {
/* Chat styles */
.chat-container {
display: flex;
height: calc(100vh - 120px);
height: 100%;
max-height: calc(100vh - 120px);
background-color: var(--card-background);
border-radius: 0.5rem;
overflow: hidden;