Commit 0035d542 authored by Andy-bubu's avatar Andy-bubu

fix: align user chat avatar on the right

parent a3d4fa64
......@@ -146,8 +146,8 @@ function AssistantMessage({
function UserMessage({ item, userInfo }) {
return (
<ChatMessage.User>
<ChatMessage.Body>
<ChatMessage.User className="rc-chat-message-user">
<ChatMessage.Body className="rc-chat-message-user-body">
<ChatMessage.Bubble>
<ChatMessage.Content>{item.message?.content}</ChatMessage.Content>
<MessageAttachments files={item.message?.files} />
......
......@@ -534,6 +534,19 @@ body [data-theme='dark'] .login-page {
padding-block-start: 0.75rem;
}
.rc-chat-message-user {
flex-direction: row;
align-items: flex-start;
justify-content: flex-end;
gap: 0.75rem;
}
.rc-chat-message-user-body {
max-width: calc(100% - 2.75rem);
flex: 0 1 auto;
padding-inline-end: 0;
}
.rc-chat-context {
display: flex;
width: 100%;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment