fix: type error
All checks were successful
Deploy to SFTP Server / build (push) Successful in 24m50s
All checks were successful
Deploy to SFTP Server / build (push) Successful in 24m50s
This commit is contained in:
parent
91d0e55d3c
commit
08c852a9e8
@ -3,9 +3,25 @@ import Image from "./Image.astro";
|
|||||||
const {src, alt, caption} = Astro.props;
|
const {src, alt, caption} = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
<figure style="display: inline-block; text-align: center; margin-block: 1em;">
|
<figure>
|
||||||
<Image src={src} alt={alt} style="max-width: 100%; height: auto;" />
|
<Image src={src} alt={alt}/>
|
||||||
<figcaption style="font-size: 0.9rem; text-align: center; color: #666; margin-top: 0.5rem;">
|
<figcaption>
|
||||||
{caption}
|
{caption}
|
||||||
</figcaption>
|
</figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
|
||||||
|
figure {
|
||||||
|
display: inline-block;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
figcaption {
|
||||||
|
font-size: 0.9rem;
|
||||||
|
text-align: center;
|
||||||
|
color: #666;
|
||||||
|
margin-top: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user