Skip to content

Commit

Permalink
fix: image rendering without size
Browse files Browse the repository at this point in the history
  • Loading branch information
ImLunaHey committed Jan 6, 2025
1 parent 6d86765 commit 6547146
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/PostEmbed/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ export const PostEmbed = ({ embed }: { embed?: BSkyPostEmbed | null }) => {
<div className={cn(embed.images.length >= 2 && 'grid grid-cols-2', 'gap-2')}>
{embed.images.map((image) => (
<Image
type="post"
key={image.thumb}
src={image.thumb}
height={image.aspectRatio.height}
width={image.aspectRatio.width}
alt={image.alt}
classNames={{
image: cn(embed.images.length >= 2 && 'h-48', 'rounded-lg w-full object-cover'),
Expand Down

0 comments on commit 6547146

Please sign in to comment.