Skip to content

Commit

Permalink
fix: Improve grid layout for agreements
Browse files Browse the repository at this point in the history
- refactor: Adjust conditional grid classes for better layout
- style: Correct alignment and spacing for single and double column views
  • Loading branch information
Sampiiiii committed Nov 18, 2024
1 parent 1287d4b commit bef48a1
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ export default function Component() {
<h1 className="text-2xl sm:text-3xl font-bold text-center my-5">Agreements</h1>
<p className="text-center mb-6">The signable agreements in the iForge.</p>
<div
className={`grid grid-cols-1 md:grid-cols-2 gap-6 ${filteredAgreements.length === 1 ? "md:grid-cols-1 max-w-md mx-auto" : ""}`}
className={`
grid
${filteredAgreements.length === 1 ? "grid-cols-1 max-w-md mx-auto" : "grid-cols-1 md:grid-cols-2"}
gap-6
`}
>
{filteredAgreements.map((agreement) => (
<AgreementCard key={agreement.id} agreement={agreement} />
Expand Down

0 comments on commit bef48a1

Please sign in to comment.