Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

fix(ui): AI monogram avatar fills the slot, no box/frame around it

purplecd508538e79d
diff --git a/src/components/chat/CodexView.tsx b/src/components/chat/CodexView.tsx
index 636b5965..86858380 100644
--- a/src/components/chat/CodexView.tsx
+++ b/src/components/chat/CodexView.tsx
@@ -235,13 +235,13 @@ export function CodexView() {
<div className={`w-5 h-5 rounded overflow-hidden flex items-center justify-center shrink-0 ${
msg.role === 'user'
? 'bg-gray-100 dark:bg-white/8'
- : 'bg-gray-50 dark:bg-white/5'
+ : ''
}`}>
{msg.role === 'user'
? (userAvatarDataUrl
? <img src={userAvatarDataUrl} alt="" className="w-full h-full object-cover" />
: <User size={9} className="text-gray-400" />)
- : <img src="/LU-monogram-bw.png" alt="" className="w-3 h-3 object-contain dark:invert-0 invert opacity-80" />
+ : <img src="/LU-monogram-bw.png" alt="" className="w-full h-full object-contain dark:invert-0 invert opacity-80" />
}
</div>
<div className="max-w-[85%] space-y-0.5">
diff --git a/src/components/chat/MessageBubble.tsx b/src/components/chat/MessageBubble.tsx
index 2fce6d45..79ef7537 100644
--- a/src/components/chat/MessageBubble.tsx
+++ b/src/components/chat/MessageBubble.tsx
@@ -104,9 +104,8 @@ export function MessageBubble({ message, onRegenerate, onEdit, pendingApprovalId
<div
className={
'w-6 h-6 rounded-md overflow-hidden flex items-center justify-center shrink-0 ' +
- (isUser
- ? 'bg-gray-100 dark:bg-white/8 border border-gray-200 dark:border-white/10'
- : 'bg-gray-50 dark:bg-white/5 border border-gray-200 dark:border-white/[0.06]')
+ // User avatar keeps a framed chip; the AI monogram stands alone (no box).
+ (isUser ? 'bg-gray-100 dark:bg-white/8 border border-gray-200 dark:border-white/10' : '')
}
>
{isUser ? (
@@ -114,8 +113,8 @@ export function MessageBubble({ message, onRegenerate, onEdit, pendingApprovalId
? <img src={userAvatarDataUrl} alt="" className="w-full h-full object-cover" />
: <User size={11} className="text-gray-400" />
) : (
- // AI avatar is ALWAYS the LU black/white monogram (theme-inverted).
- <img src="/LU-monogram-bw.png" alt="" className="w-4 h-4 object-contain dark:invert-0 invert opacity-80" />
+ // AI avatar = the LU monogram ALONE, filling the slot — no box/border/bg.
+ <img src="/LU-monogram-bw.png" alt="" className="w-full h-full object-contain dark:invert-0 invert opacity-80" />
)}
</div>