Improve article rendering.

This commit is contained in:
2025-06-03 16:02:57 +08:00
parent 486db58e46
commit 38d5bd3242
2 changed files with 12 additions and 8 deletions

View File

@@ -279,7 +279,7 @@ function Article({resource}: { resource: ResourceDetails }) {
})
html = splits.join(" ")
return <div
className={`w-full max-w-xl rounded-xl overflow-clip ${html.includes("youtube") ? "aspect-video" : "h-48 sm:h-64"}`}
className={`w-full my-3 max-w-xl rounded-xl overflow-clip ${html.includes("youtube") ? "aspect-video" : "h-48 sm:h-64"}`}
dangerouslySetInnerHTML={{
__html: html
}}></div>