Skip to content

Commit

Permalink
feat: Update image paths and sizes in frontend components
Browse files Browse the repository at this point in the history
  • Loading branch information
Sma1lboy committed Nov 2, 2024
1 parent 48bb045 commit 529e4a4
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 16 deletions.
Binary file added frontend/public/codefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions frontend/public/codefox.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed frontend/public/ollama.png
Binary file not shown.
24 changes: 9 additions & 15 deletions frontend/src/components/chat/chat-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ export default function ChatList({
if (messages.length === 0) {
return (
<div className="w-full h-full flex justify-center items-center">
<div className="flex flex-col gap-4 items-center">
<div className="flex flex-col items-center">
<img
src="/ollama.png"
src="/codefox.png"
alt="AI"
className="h-20 w-14 object-contain dark:invert"
className="h-24 w-24 aspect-square object-contain dark:invert"
/>
<p className="text-center text-lg text-muted-foreground">
How can I help you today?
Expand Down Expand Up @@ -159,9 +159,7 @@ export default function ChatList({
<AvatarImage
src="/"
alt="user"
width={6}
height={6}
className="object-contain"
className="h-full w-full object-cover"
/>
<AvatarFallback>
{user.username?.substring(0, 2).toUpperCase()}
Expand All @@ -172,11 +170,9 @@ export default function ChatList({
<div className="flex items-end gap-2">
<Avatar className="flex justify-start items-center">
<AvatarImage
src="/ollama.png"
src="/codefox.png"
alt="AI"
width={6}
height={6}
className="object-contain dark:invert"
className="h-full w-full object-contain dark:invert"
/>
</Avatar>
<span className="bg-accent p-3 rounded-md max-w-xs sm:max-w-2xl overflow-x-auto">
Expand All @@ -191,13 +187,11 @@ export default function ChatList({

{loadingSubmit && (
<div className="flex pl-4 pb-4 gap-2 items-center">
<Avatar className="flex justify-start items-center">
<Avatar className="h-10 w-10 flex justify-start items-center">
<AvatarImage
src="/ollama.png"
src="/codefox.png"
alt="AI"
width={6}
height={6}
className="object-contain dark:invert"
className="h-full w-full object-contain dark:invert"
/>
</Avatar>
<div className="bg-accent p-3 rounded-md max-w-xs sm:max-w-2xl overflow-x-auto">
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function Sidebar({
<div className="flex gap-3 items-center">
{!isCollapsed && !isMobile && (
<Image
src="/ollama.png"
src="/codefox.png"
alt="AI"
width={28}
height={28}
Expand Down

0 comments on commit 529e4a4

Please sign in to comment.