Skip to content

Commit

Permalink
refactor: equal height theme cards
Browse files Browse the repository at this point in the history
Set the theme card height to 100%, os that heights match along a row.
  • Loading branch information
eatyourgreens committed Jul 12, 2024
1 parent 9e09d06 commit 47f58a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/navdiagram/ThemeGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function ThemeGrid({ theme }: { theme: Theme }) {
return (
<Grid item xs={Math.max(12 / courses.length, 4)} key={colIndex}>
<Link href={`/material/${repo}/${theme.id}/${course.id}`}>
<Paper elevation={3} sx={{ p: 2, textAlign: "center" }}>
<Paper elevation={3} sx={{ p: 2, textAlign: "center", height: '100%' }}>
<Typography variant="h5" component="h2">
{course ? course.name : "Unnamed Section"}
</Typography>
Expand Down

0 comments on commit 47f58a5

Please sign in to comment.