Skip to content

Commit

Permalink
added padding for reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadgaz committed Sep 27, 2024
1 parent 7c831d8 commit 6c2cb78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/(main)/courses/[id]/@reviews/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default function Page({ params }: { params: { id: string } }) {
return (
<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 max-h-[100dvh] min-h-[50dvh] w-full flex-col gap-sm overflow-y-auto 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 @@ -86,7 +86,7 @@ export default function Page({ params }: { params: { id: string } }) {
</div>
</div>
<SessionProvider>
<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 id="reviews">{results?.total_results ?? '-'} Review(s)</p>
{isLoading || isValidating ? <Skeleton /> : null}
{!isLoading && !isValidating
Expand Down
4 changes: 2 additions & 2 deletions app/(main)/professors/[id]/@reviews/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default function Page({ params }: { params: { id: string } }) {
return (
<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 max-h-[100dvh] min-h-[50dvh] w-full flex-col gap-sm overflow-y-auto 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 @@ -87,7 +87,7 @@ export default function Page({ params }: { params: { id: string } }) {
</div>
</div>
<SessionProvider>
<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 id="reviews">{results?.total_results ?? '-'} Review(s)</p>
<form action="/professors/review" className="flex gap-sm">
<input type="hidden" name="professor_id" value={params.id} />
Expand Down

0 comments on commit 6c2cb78

Please sign in to comment.