fix(frontend/blog) fix style

This commit is contained in:
lumither committed 2024-05-05 00:53:54 +08:00
1 parent ac84a6acb5
commit 85d474e902
2 files changed
+2 -5

No files matched your search

+1 -4
View File
@@ -16,9 +16,7 @@ function BlogPostCard({ post }: Props) {
return (
<div>
{/*todo: to be update*/ }
{/*<Link href={ `/blog/${ name }` }>*/ }
<Card as={ Link } href={ `/blog/post/${ post_id }` }>
<Card as={ Link } href={ `/blog/post/${ post_id }` } className={ `mx-7` }>
<CardHeader>
<p className={ 'font-bold' }>{ title }</p>
</CardHeader>
@@ -31,7 +29,6 @@ function BlogPostCard({ post }: Props) {
{ last_update }
</CardBody>
</Card>
{/*</Link>*/ }
</div>
);
+1 -1
View File
@@ -11,7 +11,7 @@ async function Blog() {
// blog list
<ul className={ 'flex flex-col items-center w-full max-w-[1024px]' }>
{ posts.map((post: JSON, key: React.Key | null | undefined) => (
<li key={ key } className={ 'my-3.5 mx-7 w-[80%]' }>
<li key={ key } className={ 'my-7 w-full' }>
<BlogPostCard post={ post } />
</li>)
) }