Skip to content

Commit

Permalink
style(ButtonGrid): use a 2x2 grid if 4 elements (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzocorallo authored Jul 29, 2024
1 parent e12f065 commit e864f11
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Homepage/ButtonGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ const cols = (layout?: number) => {
// return "grid-cols-2";
// case 3:
// return "grid-cols-3";
case 4:
return "grid-cols-2";
default:
return "grid-cols-[repeat(auto-fill,minmax(18rem,1fr))]";
}
Expand Down

0 comments on commit e864f11

Please sign in to comment.