Skip to content

Commit

Permalink
fix: hero image style
Browse files Browse the repository at this point in the history
  • Loading branch information
Eveeifyeve committed Oct 24, 2024
1 parent b55924e commit 13b5a3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/HeroImage.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ interface Props {
}
const { src, className, flexbasis } = Astro.props;
const imageStyle = `--image-url: url(${src}); flex-basis: ${flexbasis};`;
---

<div
class={twMerge("reveal-image", className)}
style="--image-url: url(${src}); flex-basis:${flexbasis};"
style={imageStyle}
>
</div>

Expand Down

0 comments on commit 13b5a3c

Please sign in to comment.