Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Replace max_height with height #1539

Merged
merged 2 commits into from
Sep 16, 2024
Merged

Conversation

dermotduffy
Copy link
Owner

BREAKING CHANGE: This entirely removes min_height, and replaces max_height with height. The behavior is obviously not exactly the same, but the prior behavior did not actually work correctly. CSS does not limit the height of child elements that are 100% of their parents height if the parent does not have an explicit height set (this caused spillage over the set max height). As such, it's simpler to just allow the user to set the actual height of the card should they need to do so, with a (hopefully) minor loss of flexibility.

BREAKING CHANGE: This entirely removes `min_height`, and replaces `max_height` with `height`. The behavior is obviously not exactly the same, but the prior behavior did not actually work correctly. CSS does not  limit the height of child elements that are `100%` of their parents height if the parent does not have an explicit height set (this caused spillage over the set max height). As such, it's simpler to just allow the user to set the actual height of the card should they need to do so, with a (hopefully) minor loss of flexibility.
@dermotduffy dermotduffy added the breaking Breaking Changes label Sep 15, 2024
@dermotduffy
Copy link
Owner Author

@dermotduffy dermotduffy merged commit f924537 into main Sep 16, 2024
3 checks passed
@dermotduffy dermotduffy deleted the height-instead-of-max-height branch September 16, 2024 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Breaking Changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant