Spaces:
Sleeping
Sleeping
/* Container for all messages */ | |
.chat-container { | |
display: flex; | |
flex-direction: column; | |
gap: 1rem; | |
padding: 1rem; | |
} | |
/* Message wrapper with avatar support */ | |
.chat-message { | |
display: flex; | |
align-items: flex-start; | |
gap: 0.5rem; | |
width: 100%; | |
max-width: 900px; | |
margin: 0.5rem 0; | |
} | |
/* Avatar container */ | |
.avatar { | |
width: 40px; | |
height: 40px; | |
border-radius: 50%; | |
overflow: hidden; | |
flex-shrink: 0; | |
} | |
.avatar img { | |
width: 100%; | |
height: 100%; | |
object-fit: cover; | |
} | |
/* Message content wrapper */ | |
.message-content-wrapper { | |
display: flex; | |
flex-direction: column; | |
max-width: 80%; | |
} | |
/* Message bubble */ | |
.message-bubble { | |
padding: 1rem; | |
border-radius: 0.5rem; | |
margin: 0.2rem 0; | |
} | |
/* User message specific styling */ | |
.user-message { | |
flex-direction: row-reverse; | |
} | |
.user-message .message-bubble { | |
background-color: #2b313e; | |
border-top-right-radius: 0; | |
color: white; | |
} | |
/* Assistant message specific styling */ | |
.assistant-message .message-bubble { | |
background-color: #343741; | |
border-top-left-radius: 0; | |
color: white; | |
} | |
/* Message content */ | |
.message-content { | |
word-wrap: break-word; | |
} | |
/* Remove default streamlit margins */ | |
.stMarkdown { | |
margin: 0 ; | |
} | |
/* Style for code blocks within messages */ | |
.message-content pre { | |
background-color: #1e1e1e; | |
padding: 0.5rem; | |
border-radius: 0.3rem; | |
margin: 0.5rem 0; | |
overflow-x: auto; | |
} | |
/* Improved loading spinner visibility */ | |
.stSpinner { | |
text-align: center; | |
margin: 1rem 0; | |
} | |
/* Time stamp styling */ | |
.timestamp { | |
font-size: 0.8em; | |
color: #999; | |
margin: 0.2rem 0; | |
} | |
.logo-container { | |
display: flex; | |
/* Enable flexbox layout */ | |
align-items: center; | |
/* Vertically center-align items */ | |
padding: 10px 0; | |
/* Add padding top/bottom */ | |
} | |
.logo-image { | |
max-width: 110px; | |
/* Set maximum width */ | |
height: auto; | |
/* Maintain aspect ratio */ | |
} |