fix: type error
All checks were successful
Deploy to SFTP Server / build (push) Successful in 24m50s

This commit is contained in:
max_richter 2024-06-21 14:53:36 +02:00
parent 91d0e55d3c
commit 08c852a9e8

View File

@ -3,9 +3,25 @@ import Image from "./Image.astro";
const {src, alt, caption} = Astro.props;
---
<figure style="display: inline-block; text-align: center; margin-block: 1em;">
<Image src={src} alt={alt} style="max-width: 100%; height: auto;" />
<figcaption style="font-size: 0.9rem; text-align: center; color: #666; margin-top: 0.5rem;">
<figure>
<Image src={src} alt={alt}/>
<figcaption>
{caption}
</figcaption>
</figure>
<style>
figure {
display: inline-block;
text-align: center;
}
figcaption {
font-size: 0.9rem;
text-align: center;
color: #666;
margin-top: 0.5rem;
}
</style>