Skip to content

Commit ca39841

Browse files
crutchcornjasonLaster
authored andcommitted
fix: homepage mobile styling
1 parent c33af34 commit ca39841

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const miniCards: CardAttributes[] = [
8383

8484
export default function Page() {
8585
return (
86-
<div data-test-id="page" className="mx-auto flex max-w-4xl flex-col py-8">
86+
<div data-test-id="page" className="mx-auto flex max-w-4xl flex-col px-4 py-8">
8787
<Hero />
8888
<h2 className="py-8 text-2xl font-semibold">Topics</h2>
8989
<div className="grid place-items-center gap-4 pb-20 md:grid-cols-2 lg:grid-cols-3">

src/components/MiniCard.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default function MiniCard({
99
href,
1010
}: CardAttributes) {
1111
return (
12-
<Link href={href}>
12+
<Link href={href} className="w-full">
1313
<li
1414
key={title}
1515
className="col-span-1 flex rounded-md bg-gray-100/70 bg-opacity-30 shadow-md transition-colors hover:bg-gray-200/90 dark:bg-gray-950/50 dark:hover:bg-gray-900/50"

0 commit comments

Comments
 (0)