Skip to content

Commit

Permalink
Merge pull request #246 from ahmed0saber/stretch-algorithm-cards-to-s…
Browse files Browse the repository at this point in the history
…ame-height

Set same height for all algo cards in same row
  • Loading branch information
maltejur authored Jul 30, 2023
2 parents f7e816b + c3a5058 commit 8b95b76
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/algorithmsList/algorithmCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function AlgorithmCard({ algorithm }: { algorithm: Algorithm }) {
const t = useTranslation();

return (
<Card className="elevateOnHover">
<Card className={`elevateOnHover ${classes.stretchedCard}`}>
<CardContent>
<Breadcrumbs>
{algorithm.categories.map((category) => (
Expand Down
7 changes: 7 additions & 0 deletions components/algorithmsList/algorithmCard/style.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,10 @@
.actions {
justify-content: space-between;
}

.stretchedCard {
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
}

1 comment on commit 8b95b76

@vercel
Copy link

@vercel vercel bot commented on 8b95b76 Jul 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

website – ./

website-git-main-thealgorithms.vercel.app
the-algorithms.com
website-thealgorithms.vercel.app

Please sign in to comment.