Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
A
ai-chat-xy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
David Yang
ai-chat-xy
Commits
0035d542
Commit
0035d542
authored
Aug 27, 2026
by
Andy-bubu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: align user chat avatar on the right
parent
a3d4fa64
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
ChatWorkspace.jsx
src/components/ChatWorkspace.jsx
+2
-2
tailwind.css
src/tailwind.css
+13
-0
No files found.
src/components/ChatWorkspace.jsx
View file @
0035d542
...
...
@@ -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
}
/>
...
...
src/tailwind.css
View file @
0035d542
...
...
@@ -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%
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment