Skip to content

Conversation

@gumaerc
Copy link
Contributor

@gumaerc gumaerc commented Oct 1, 2024

What are the relevant tickets?

Closes https://github.com/mitodl/hq/issues/5684

Description (What does it do?)

This PR fixes an issue with the height of the cards on the units listing page. MUI Cards by default have a height: 100% rule on them. This conflicts with the flex-grow: 1 setting used by the cards on the units page. Since the cards have dynamic content that can be edited, two cards with different implicit heights could end up next to each other. The flex-grow rule ensures that the shorter card grows to match the height of the tallest card, and the course / program counts stay pinned to the bottom of the card.

How can this be tested?

@gumaerc gumaerc added the Needs Review An open Pull Request that is ready for review label Oct 1, 2024
@shanbady shanbady self-assigned this Oct 1, 2024
@shanbady shanbady self-requested a review October 1, 2024 18:56
Copy link
Contributor

@shanbady shanbady left a comment

Choose a reason for hiding this comment

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

👍 looking good

@gumaerc gumaerc merged commit fa8094e into main Oct 1, 2024
10 checks passed
@odlbot odlbot mentioned this pull request Oct 1, 2024
2 tasks
mbertrand pushed a commit that referenced this pull request Oct 4, 2024
@rhysyngsun rhysyngsun deleted the cg/units-page-safari-bug branch February 7, 2025 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review An open Pull Request that is ready for review Waiting on author

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants