From 9fd2e3e448ee3860539c1d382fe732e77635b975 Mon Sep 17 00:00:00 2001 From: ahmadgaz Date: Thu, 26 Sep 2024 17:02:18 -0700 Subject: [PATCH 1/3] added max height --- app/(main)/courses/[id]/@reviews/page.tsx | 4 ++-- app/(main)/professors/[id]/@reviews/page.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/(main)/courses/[id]/@reviews/page.tsx b/app/(main)/courses/[id]/@reviews/page.tsx index 80ca138..81abbf6 100644 --- a/app/(main)/courses/[id]/@reviews/page.tsx +++ b/app/(main)/courses/[id]/@reviews/page.tsx @@ -60,9 +60,9 @@ export default function Page({ params }: { params: { id: string } }) { const results = data ? data[0] : null; const items = data ? data.flatMap((d) => d.items) : []; return ( -
+
-
+

Filters

Limit

d.items) : []; return ( -
+
-
+

Filters

Limit

Date: Thu, 26 Sep 2024 17:34:15 -0700 Subject: [PATCH 2/3] fixed heights for search --- app/(main)/courses/search/page.tsx | 6 +++--- app/(main)/professors/search/page.tsx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/(main)/courses/search/page.tsx b/app/(main)/courses/search/page.tsx index 5d50fc8..76919d0 100644 --- a/app/(main)/courses/search/page.tsx +++ b/app/(main)/courses/search/page.tsx @@ -35,9 +35,9 @@ export default async function Page({

Search results for "{searchParams.query}"

-
+
-
+

Filters

Limit

-
+

{total_results ?? '-'} Courses(s)

{items && total_results > 0 ? ( diff --git a/app/(main)/professors/search/page.tsx b/app/(main)/professors/search/page.tsx index 48a7109..cecd139 100644 --- a/app/(main)/professors/search/page.tsx +++ b/app/(main)/professors/search/page.tsx @@ -23,9 +23,9 @@ export default async function Page({

Search results for "{searchParams.query}"

-
+
-
+

Filters

Limit

-
+

{total_results ?? '-'} Professor(s)

{items && total_results > 0 ? ( From 6c2cb78f9f161f6176ffa4feeae423aaacbe36bc Mon Sep 17 00:00:00 2001 From: ahmadgaz Date: Thu, 26 Sep 2024 17:36:03 -0700 Subject: [PATCH 3/3] added padding for reviews --- app/(main)/courses/[id]/@reviews/page.tsx | 4 ++-- app/(main)/professors/[id]/@reviews/page.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/(main)/courses/[id]/@reviews/page.tsx b/app/(main)/courses/[id]/@reviews/page.tsx index 81abbf6..60d22b1 100644 --- a/app/(main)/courses/[id]/@reviews/page.tsx +++ b/app/(main)/courses/[id]/@reviews/page.tsx @@ -62,7 +62,7 @@ export default function Page({ params }: { params: { id: string } }) { return (
-
+

Filters

Limit

-
+

{results?.total_results ?? '-'} Review(s)

{isLoading || isValidating ? : null} {!isLoading && !isValidating diff --git a/app/(main)/professors/[id]/@reviews/page.tsx b/app/(main)/professors/[id]/@reviews/page.tsx index 62ef403..183f025 100644 --- a/app/(main)/professors/[id]/@reviews/page.tsx +++ b/app/(main)/professors/[id]/@reviews/page.tsx @@ -63,7 +63,7 @@ export default function Page({ params }: { params: { id: string } }) { return (
-
+

Filters

Limit

-
+

{results?.total_results ?? '-'} Review(s)