Skip to content

Commit

Permalink
fix(demos/narcissus-astro): 💄 update banner image styling
Browse files Browse the repository at this point in the history
  • Loading branch information
rodneylab committed Dec 13, 2021
1 parent fb43c91 commit a491f8d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions demos/narcissus-astro/src/components/BannerImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const BannerImage = function BannerImage({ imageData }: BannerImageProps): JSX.E
}, [placeholder, sources, src, ssr]);

return (
<div className={container}>
<div>
<picture>
{sources.map((element) => {
const { srcset, type } = element;
Expand All @@ -48,7 +48,7 @@ const BannerImage = function BannerImage({ imageData }: BannerImageProps): JSX.E
);
})}
<img
className="lazy"
className={`${container} lazy`}
alt={alt}
importance="high"
loading="eager"
Expand All @@ -57,8 +57,7 @@ const BannerImage = function BannerImage({ imageData }: BannerImageProps): JSX.E
height={height}
data-src={src}
src={placeholder}
objectFit="contain"
style={{ maxWidth: '100%' }}
objectfit="contain"
/>
</picture>
</div>
Expand Down

0 comments on commit a491f8d

Please sign in to comment.