refactor(assets): relocate character avatars
This commit is contained in:
@@ -56,7 +56,7 @@ describe("shared Tailwind components", () => {
|
||||
expect(html).toContain("width:48px");
|
||||
expect(html).toContain("height:48px");
|
||||
expect(html).toContain("size-full object-cover");
|
||||
expect(html).toContain("%2Fimages%2Fchat%2Fpic-chat-elio.png");
|
||||
expect(html).toContain("%2Fimages%2Favatar%2Felio.png");
|
||||
});
|
||||
|
||||
it("renders UserMessageAvatar custom and fallback images", () => {
|
||||
@@ -71,6 +71,6 @@ describe("shared Tailwind components", () => {
|
||||
expect(userHtml).toContain("size-full object-cover");
|
||||
expect(userHtml).toContain("%2Favatar.png");
|
||||
expect(guestHtml).toContain('aria-label="Guest avatar"');
|
||||
expect(guestHtml).toContain("%2Fimages%2Fchat%2Fpic-chat-guest.png");
|
||||
expect(guestHtml).toContain("%2Fimages%2Favatar%2Fplaceholder.png");
|
||||
});
|
||||
});
|
||||
|
||||
@@ -13,7 +13,7 @@ export interface CharacterAvatarProps {
|
||||
}
|
||||
|
||||
export function CharacterAvatar({
|
||||
src = "/images/chat/pic-chat-elio.png",
|
||||
src = "/images/avatar/elio.png",
|
||||
alt = "Elio Silvestri",
|
||||
className,
|
||||
size = 43,
|
||||
|
||||
@@ -47,7 +47,7 @@ export function UserMessageAvatar({
|
||||
aria-label="Guest avatar"
|
||||
>
|
||||
<Image
|
||||
src="/images/chat/pic-chat-guest.png"
|
||||
src="/images/avatar/placeholder.png"
|
||||
alt="Guest"
|
||||
width={imageSize}
|
||||
height={imageSize}
|
||||
|
||||
Reference in New Issue
Block a user