Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
flvndvd committed Apr 24, 2024
1 parent 4251c72 commit 2f16d0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
15 changes: 3 additions & 12 deletions sparkle/src/components/AssistantPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,7 @@ const ItemVariantContent = ({
return (
<>
<div className="s-flex s-items-center s-gap-2">
<Avatar
visual={<img src={pictureUrl} alt={`Avatar of ${title}`} />}
size="sm"
/>
<Avatar name={`Avatar of ${title}`} visual={pictureUrl} size="sm" />
<div className="s-flex s-w-full s-min-w-0 s-flex-col s-items-start s-gap-2">
<div className="s-flex s-w-full s-min-w-0 s-flex-row s-gap-3">
<div className="s-flex s-w-full s-min-w-0 s-flex-col s-items-start s-gap-0">
Expand Down Expand Up @@ -127,10 +124,7 @@ const ListVariantContent = ({
}: ListVariantAssistantPreviewProps) => {
return (
<div className="s-flex s-gap-2">
<Avatar
visual={<img src={pictureUrl} alt={`Avatar of ${title}`} />}
size="lg"
/>
<Avatar name={`Avatar of ${title}`} visual={pictureUrl} size="lg" />
<div className="s-flex s-w-full s-min-w-0 s-flex-col s-items-start s-gap-2">
<div className="s-flex s-w-full s-min-w-0 s-flex-row s-gap-3">
<div className="s-flex s-w-full s-min-w-0 s-flex-col s-items-start s-gap-0">
Expand Down Expand Up @@ -179,10 +173,7 @@ const GalleryVariantContent = ({
}: GalleryVariantAssistantPreviewProps & { isHovered: boolean }) => {
return (
<div className="s-flex s-gap-2">
<Avatar
visual={<img src={pictureUrl} alt={`Avatar of ${title}`} />}
size="lg"
/>
<Avatar name={`Avatar of ${title}`} visual={pictureUrl} size="lg" />
<div className="s-flex s-w-full s-min-w-0 s-flex-col s-items-start s-gap-2">
<div className="s-flex s-w-full s-min-w-0 s-flex-row s-gap-3">
<div className="s-flex s-w-full s-min-w-0 s-flex-col s-items-start s-gap-0">
Expand Down
2 changes: 1 addition & 1 deletion sparkle/src/lib/avatar/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ export function createEmojiAndBackgroundUrlSuffix({
id: string;
unified: string;
}) {
return `/emojis/${backgroundColor}/${id}/${unified}`;
return `emojis/${backgroundColor}/${id}/${unified}`;
}

0 comments on commit 2f16d0f

Please sign in to comment.