fix: add stylings for list

This commit is contained in:
Christel Westerberg
2024-07-05 10:32:08 +02:00
parent 6184662caa
commit 17bc18ce2b
12 changed files with 167 additions and 43 deletions

View File

@@ -1,5 +1,7 @@
import { nodesToHtml } from "./utils"
import styles from "./jsontohtml.module.css"
import type { JsonToHtmlProps } from "@/types/components/jsontohtml"
export default function JsonToHtml({
@@ -11,7 +13,7 @@ export default function JsonToHtml({
return null
}
return (
<section style={{ display: "grid", gap: "var(--Spacing-x3" }}>
<section className={styles.container}>
{nodesToHtml(nodes, embeds, renderOptions).filter(Boolean)}
</section>
)