Skip to content

Commit

Permalink
fixed heights for search
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadgaz committed Sep 27, 2024
1 parent 9fd2e3e commit 7c831d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions app/(main)/courses/search/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ export default async function Page({
<div className="mx-auto w-full max-w-content-width px-md py-lg">
<p>Search results for &quot;{searchParams.query}&quot;</p>
</div>
<section className="mx-auto flex w-full max-w-content-width items-stretch gap-md px-md pb-lg">
<section className="mx-auto flex w-full max-w-content-width items-stretch gap-md px-md">
<div className="w-[250px] max-lg:hidden">
<div className="sticky top-0 flex min-h-[50dvh] w-full flex-col gap-sm pt-lg">
<div className="sticky top-0 flex max-h-[100dvh] min-h-[50dvh] w-full flex-col gap-sm overflow-y-auto pb-lg pt-lg">
<p className="pb-md">Filters</p>
<p className="pb-sm text-small-lg">Limit</p>
<FilterGroup
Expand Down Expand Up @@ -78,7 +78,7 @@ export default async function Page({
</LinkBtn>
</div>
</div>
<div className="flex flex-1 flex-col items-stretch gap-md pt-lg">
<div className="flex flex-1 flex-col items-stretch gap-md pb-lg pt-lg">
<p>{total_results ?? '-'} Courses(s)</p>

{items && total_results > 0 ? (
Expand Down
6 changes: 3 additions & 3 deletions app/(main)/professors/search/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ export default async function Page({
<div className="mx-auto w-full max-w-content-width px-md py-lg">
<p>Search results for &quot;{searchParams.query}&quot;</p>
</div>
<section className="mx-auto flex w-full max-w-content-width items-stretch gap-md px-md pb-lg">
<section className="mx-auto flex w-full max-w-content-width items-stretch gap-md px-md">
<div className="w-[250px] max-lg:hidden">
<div className="sticky top-0 flex min-h-[50dvh] w-full flex-col gap-sm pt-lg">
<div className="sticky top-0 flex max-h-[100dvh] min-h-[50dvh] w-full flex-col gap-sm overflow-y-auto pb-lg pt-lg">
<p className="pb-md">Filters</p>
<p className="pb-sm text-small-lg">Limit</p>
<FilterGroup
Expand All @@ -35,7 +35,7 @@ export default async function Page({
/>
</div>
</div>
<div className="flex flex-1 flex-col items-stretch gap-md pt-lg">
<div className="flex flex-1 flex-col items-stretch gap-md pb-lg pt-lg">
<p>{total_results ?? '-'} Professor(s)</p>

{items && total_results > 0 ? (
Expand Down

0 comments on commit 7c831d8

Please sign in to comment.