Skip to content
Snippets Groups Projects
Commit bf963f5e authored by Mihai-Valentin DUMITRU's avatar Mihai-Valentin DUMITRU
Browse files

move user chat bubble formatting to css

parent ec003785
No related branches found
No related tags found
No related merge requests found
Pipeline #109213 passed
......@@ -26,6 +26,14 @@
overflow: hidden;
}
.user-message {
background-color: #1f2937;
color: white;
border-radius: 0.5rem;
padding: 0.5rem 1rem;
max-width: 70%;
}
.typing-indicator {
display: flex;
align-items: center;
......
......@@ -195,10 +195,10 @@ export async function onUserRequest(message, conversationID) {
const messageElement = document.createElement('div');
messageElement.className = 'flex justify-end mb-3';
messageElement.innerHTML = `
<div class="bg-gray-800 text-white rounded-lg py-2 px-4 max-w-[70%]">
${message}
</div>
`;
<div class="user-message">
${message}
</div>
`;
const chatMessages = document.getElementById('chat-messages');
chatMessages.appendChild(messageElement);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment