Skip to content

Commit b5868df

Browse files
committed
Update widget badge text to 'Ask me something' and improve visibility
1 parent f954d39 commit b5868df

1 file changed

Lines changed: 38 additions & 11 deletions

File tree

widget/src/ui/chat-interface.ts

Lines changed: 38 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -225,19 +225,46 @@ export class ChatInterface {
225225

226226
header.innerHTML = `
227227
<div style="
228-
width: 48px;
229-
height: 48px;
230-
border-radius: 50%;
231-
${hasPhotoAvatar
232-
? ''
233-
: `background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); display: flex; align-items: center; justify-content: center;`}
228+
display: flex;
229+
flex-direction: column;
230+
align-items: center;
231+
gap: 8px;
234232
flex-shrink: 0;
235-
overflow: hidden;
236-
position: relative;
237233
">
238-
${hasPhotoAvatar
239-
? `<img src="${avatarUrl}" alt="${this.config.agent.name}" style="width: 100%; height: 100%; object-fit: cover; border-radius: 50%;" onerror="this.style.display='none'; this.parentElement.style.background='linear-gradient(135deg, #667eea 0%, #764ba2 100%)'; this.parentElement.innerHTML='${Icons.chat('white')}'" />`
240-
: Icons.chat('white')}
234+
<div style="
235+
width: 48px;
236+
height: 48px;
237+
border-radius: 50%;
238+
${hasPhotoAvatar
239+
? ''
240+
: `background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); display: flex; align-items: center; justify-content: center;`}
241+
overflow: hidden;
242+
position: relative;
243+
">
244+
${hasPhotoAvatar
245+
? `<img src="${avatarUrl}" alt="${this.config.agent.name}" style="width: 100%; height: 100%; object-fit: cover; border-radius: 50%;" onerror="this.style.display='none'; this.parentElement.style.background='linear-gradient(135deg, #667eea 0%, #764ba2 100%)'; this.parentElement.innerHTML='${Icons.chat('white')}'" />`
246+
: Icons.chat('white')}
247+
</div>
248+
<div style="
249+
display: inline-flex;
250+
align-items: center;
251+
gap: 6px;
252+
background: ${isDark ? 'rgba(102, 126, 234, 0.2)' : 'rgba(102, 126, 234, 0.12)'};
253+
border: 1px solid ${isDark ? 'rgba(102, 126, 234, 0.4)' : 'rgba(102, 126, 234, 0.25)'};
254+
border-radius: 16px;
255+
padding: 5px 12px;
256+
font-size: 12px;
257+
font-weight: 600;
258+
color: ${isDark ? '#c4d0ff' : '#667eea'};
259+
white-space: nowrap;
260+
text-align: center;
261+
box-shadow: ${isDark ? '0 2px 8px rgba(102, 126, 234, 0.15)' : '0 2px 8px rgba(102, 126, 234, 0.1)'};
262+
animation: pulse 2s ease-in-out infinite;
263+
margin-top: 4px;
264+
">
265+
<span style="width: 6px; height: 6px; background: #22c55e; border-radius: 50%; display: inline-block; flex-shrink: 0;"></span>
266+
Ask me something
267+
</div>
241268
</div>
242269
<div style="flex: 1; min-width: 0;">
243270
<div style="

0 commit comments

Comments
 (0)