mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-14 01:50:39 +09:00
Move user avatar outside content column to right margin
Use relative positioning with pr-8 reserved space and absolute positioning for the avatar, so it sits outside the content column boundary while the bubble's right edge aligns with the column edge. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
f94fe57d10
commit
3574a3bf49
1 changed files with 4 additions and 4 deletions
|
|
@ -360,11 +360,11 @@ function IssueChatUserMessage() {
|
|||
|
||||
return (
|
||||
<MessagePrimitive.Root id={anchorId}>
|
||||
<div className="group flex items-start justify-end gap-2">
|
||||
<div className="flex max-w-[85%] flex-col items-end">
|
||||
<div className="group relative pr-8">
|
||||
<div className="flex flex-col items-end">
|
||||
<div
|
||||
className={cn(
|
||||
"min-w-0 overflow-hidden rounded-2xl px-4 py-2.5",
|
||||
"max-w-[85%] min-w-0 overflow-hidden rounded-2xl px-4 py-2.5",
|
||||
queued
|
||||
? "bg-amber-50/80 dark:bg-amber-500/10"
|
||||
: "bg-muted",
|
||||
|
|
@ -435,7 +435,7 @@ function IssueChatUserMessage() {
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<Avatar size="sm" className="mt-1 shrink-0">
|
||||
<Avatar size="sm" className="absolute right-0 top-1 shrink-0">
|
||||
<AvatarFallback>You</AvatarFallback>
|
||||
</Avatar>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue