Skip to content

Commit baca857

Browse files
authored
fix(chat): hide thin white border for agent icon in dark theme (Issue #4195) (#4204)
1 parent 265674e commit baca857

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

apps/chat/src/components/Chatbar/ModelIcon.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,18 @@ const ModelIconTemplate = memo(
8080
return (
8181
<span
8282
className={classNames(
83-
'relative inline-block shrink-0 bg-model-icon leading-none',
83+
'relative inline-block shrink-0 leading-none',
8484
entity?.type !== EntityType.Addon && 'overflow-hidden rounded-full',
8585
animate && 'animate-bounce',
8686
enableShrinking && 'shrink',
8787
)}
8888
style={{ height: `${size}px`, width: `${size}px` }}
8989
data-qa="entity-icon"
9090
>
91+
<div
92+
className="absolute z-0 size-full rounded-full border border-secondary bg-model-icon"
93+
style={{ height: `${size}px`, width: `${size}px` }}
94+
></div>
9195
<img
9296
key={entityId}
9397
src={getIconUrl(entity)}
@@ -96,6 +100,7 @@ const ModelIconTemplate = memo(
96100
onError={handleError}
97101
data-image-name={description}
98102
ref={ref}
103+
className="absolute left-0 top-0 z-10 size-full"
99104
style={{ height: `${size}px`, width: `${size}px` }}
100105
id={entityId}
101106
/>

apps/chat/src/components/Common/ShareIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export function ShareIcon({
7575
{children}
7676
<div
7777
className={classNames(
78-
'absolute bg-layer-3',
78+
'absolute z-50 bg-layer-3',
7979
isPublished && 'rounded-md',
8080
isApplication
8181
? 'bottom-0 left-0 rounded-none rounded-tr-[4px] stroke-[0.6]'

0 commit comments

Comments
 (0)