Skip to content

Commit

Permalink
Merge pull request #27 from david-ponc/style/grid-auto-fill
Browse files Browse the repository at this point in the history
style: use grid auto fill to display icons
  • Loading branch information
pheralb committed Aug 10, 2023
2 parents f3ed82b + 9b455a5 commit 373e348
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions website/src/components/grid/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ interface GridProps {

const Grid = (props: GridProps) => {
return (
<div className="mx-auto mt-3 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-6">
{props.children}
</div>
<div className="grid-cols-fill mx-auto grid gap-4">{props.children}</div>
)
}

Expand Down
3 changes: 3 additions & 0 deletions website/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ export default {
sans: ["General-Sans", "sans-serif"],
mono: ["Hack", "monospace"],
},
gridTemplateColumns: {
fill: "repeat(auto-fill, minmax(13rem, 1fr))",
},
},
},
plugins: [require("tailwindcss-animate")],
Expand Down

0 comments on commit 373e348

Please sign in to comment.