mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 20:15:27 +00:00
feat: add option for multiple photos to figure component
This commit is contained in:
@@ -24,7 +24,7 @@ export const Figure: FunctionalComponent<Props> = ({
|
||||
|
||||
return (
|
||||
<figure class={classes} {...props}>
|
||||
<div>{children}</div>
|
||||
<div class="flex flex-wrap gap-6 md:flex-nowrap [&_div]:flex-grow">{children}</div>
|
||||
{caption && (
|
||||
<figcaption class="text-center text-2 mbs-2 [text-wrap:balance]">
|
||||
{caption}
|
||||
|
||||
Reference in New Issue
Block a user