-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
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
[CardHeader] handle wide titles: allow them to wrap #3503
[CardHeader] handle wide titles: allow them to wrap #3503
Conversation
(I'm currently adding |
Oh my, before is really ugly! Any chance we can flexbox this? |
I'm a flexbox newbie, any hint? |
Well there are many cases where we should use flexbox. I think it's best if we merge this now and take care of migrating to flexbox later. 👍 |
All green here 👍 @callemall/material-ui Feel free to merge guys. |
@@ -7,15 +7,18 @@ function getStyles(props, state) { | |||
|
|||
return { | |||
root: { | |||
height: 72, | |||
height: 'auto', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the default value. Do we need this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well for me the height depends on the content, I don't see why it was fixed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, hard-coding the height to 72
sounds like a bad idea. My point is that 'auto' is the default style value for the height property, we can remove this line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh yes right :)
…tles [CardHeader] handle wide titles: allow them to wrap
@antoinerousseau Thanks |
…-titles [CardHeader] handle wide titles: allow them to wrap
Before:
After: