feat: enhance post content parsing and rendering (#263)

This commit is contained in:
Cody Tseng 2025-04-10 23:06:28 +08:00 committed by GitHub
parent e9f8b2166e
commit 0569a1dd26
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 441 additions and 296 deletions

View file

@ -56,7 +56,7 @@ export default function WebPreview({
{image && (
<Image
image={{ url: image }}
className={`rounded-lg ${size === 'normal' ? 'h-44' : 'h-24'}`}
className={`rounded-lg aspect-[4/3] object-cover bg-foreground ${size === 'normal' ? 'h-44' : 'h-24'}`}
hideIfError
/>
)}