Skip to content

UI Fix: Center cards for small screens #1818

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
onlyBuiltDependencies:
- '@prisma/client'
- '@prisma/engines'
- bcrypt
- esbuild
- prisma
2 changes: 1 addition & 1 deletion src/app/(main)/(pages)/home/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default async function MyCoursesPage() {

return (
<main className="flex flex-col gap-4 pb-16 pt-8">
<div className="flex flex-col justify-between gap-4 lg:flex-row">
<div className="flex flex-col justify-between gap-4 lg:flex-row sm:text-center sm:justify-center">
<h1 className="text-wrap text-3xl font-extrabold capitalize tracking-tighter md:text-4xl">
<Greeting /> {session.user.name}
</h1>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Courses.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const Courses = ({ courses }: { courses: Course[] }) => {
};
const router = useRouter();
return (
<section className="grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3">
<section className="grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3 sm:place-items-center">
{courses?.map((course) => (
<CourseCard
key={course.id}
Expand Down