Skip to content

Commit 4b1605d

Browse files
authored
Merge pull request #3452 from ava-labs/owenwahlgren-patch-2
darkmode fix for AI icon
2 parents 719c833 + e2990db commit 4b1605d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

components/ai/search.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ function SmallViewContent({ onExpand }: { onExpand: () => void }) {
579579
<img
580580
src="/avax-gpt.png"
581581
alt="AI"
582-
className="size-6 object-contain"
582+
className="size-6 object-contain dark:invert"
583583
/>
584584
<DialogTitle className="text-sm font-semibold">AI Assistant</DialogTitle>
585585
</div>
@@ -613,7 +613,7 @@ function SmallViewContent({ onExpand }: { onExpand: () => void }) {
613613
<img
614614
src="/avax-gpt.png"
615615
alt="AI"
616-
className="mx-auto size-12 object-contain mb-4"
616+
className="mx-auto size-12 object-contain mb-4 dark:invert"
617617
/>
618618
<h3 className="text-sm font-medium">How can I help?</h3>
619619
<p className="text-xs text-fd-muted-foreground">
@@ -644,7 +644,7 @@ function SmallViewContent({ onExpand }: { onExpand: () => void }) {
644644
<img
645645
src="/avax-gpt.png"
646646
alt="AI"
647-
className="size-7 object-contain"
647+
className="size-7 object-contain dark:invert"
648648
/>
649649
<p className="text-xs font-medium text-muted-foreground">AI Assistant</p>
650650
</div>
@@ -716,7 +716,7 @@ function Content({ onToolReference, onCollapse }: { onToolReference?: (toolId: s
716716
<img
717717
src="/avax-gpt.png"
718718
alt="AI"
719-
className="size-7 object-contain"
719+
className="size-7 object-contain dark:invert"
720720
/>
721721
<DialogTitle className="text-lg font-semibold">AI Assistant</DialogTitle>
722722
</div>
@@ -753,7 +753,7 @@ function Content({ onToolReference, onCollapse }: { onToolReference?: (toolId: s
753753
<img
754754
src="/avax-gpt.png"
755755
alt="AI"
756-
className="mx-auto size-16 object-contain mb-6"
756+
className="mx-auto size-16 object-contain mb-6 dark:invert"
757757
/>
758758
<h3 className="text-lg font-medium">How can I help you today?</h3>
759759
<p className="text-sm text-fd-muted-foreground">
@@ -799,7 +799,7 @@ function Content({ onToolReference, onCollapse }: { onToolReference?: (toolId: s
799799
<img
800800
src="/avax-gpt.png"
801801
alt="AI"
802-
className="size-7 object-contain"
802+
className="size-7 object-contain dark:invert"
803803
/>
804804
<p className="text-xs font-medium text-muted-foreground">AI Assistant</p>
805805
</div>

components/ui/chatbot.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const Chatbot: React.FC<ChatbotProps> = ({ variant = 'fixed', className }) => {
2525
src="/avax-gpt.png"
2626
alt="AI Assistant"
2727
className={cn(
28-
"relative object-contain drop-shadow-lg",
28+
"relative object-contain drop-shadow-lg dark:invert",
2929
variant === 'fixed' ? "h-16 w-16" : "h-12 w-12"
3030
)}
3131
/>
@@ -34,4 +34,4 @@ const Chatbot: React.FC<ChatbotProps> = ({ variant = 'fixed', className }) => {
3434
);
3535
};
3636

37-
export default Chatbot;
37+
export default Chatbot;

0 commit comments

Comments
 (0)