From a01d896fe59c1f6ea7772314466836c5c2a7bb1d Mon Sep 17 00:00:00 2001 From: ilovemoon Date: Thu, 31 Oct 2024 22:06:32 +0530 Subject: [PATCH] revert: "fix: optimize Image component" (#172) --- app/(routes)/(main)/blog/[slug]/page.tsx | 1 + app/(routes)/(main)/blog/page.tsx | 19 ++++++++++--------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/app/(routes)/(main)/blog/[slug]/page.tsx b/app/(routes)/(main)/blog/[slug]/page.tsx index b0e8683..143e5b4 100644 --- a/app/(routes)/(main)/blog/[slug]/page.tsx +++ b/app/(routes)/(main)/blog/[slug]/page.tsx @@ -91,6 +91,7 @@ export default async function Page(props: { params: Promise<{ slug: string }> }) priority={true} width={0} height={0} + sizes="100vw" style={{ width: '100%', height: 'auto' }} className="rounded-2xl" /> diff --git a/app/(routes)/(main)/blog/page.tsx b/app/(routes)/(main)/blog/page.tsx index 56fe619..30358b9 100644 --- a/app/(routes)/(main)/blog/page.tsx +++ b/app/(routes)/(main)/blog/page.tsx @@ -43,15 +43,16 @@ export default async function BlogPage() { )} > {post.cover && ( -
- {post.title} -
+ {post.title} )}