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: card extra add padding #39646
fix: card extra add padding #39646
Conversation
#39643 (comment) |
看看和这个是否结论一致 #15668 |
我对比了下v4跟v5,v4有padding,v5的padding为0,但是v5中的size="small"却有padding,所以还是缺少这个padding |
给个 debug demo 测一下 |
Codecov ReportBase: 100.00% // Head: 100.00% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## master #39646 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 556 556
Lines 9607 9607
Branches 2718 2718
=========================================
Hits 9607 9607 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
cardHeadHeight 的问题也要管一下,看看这个应该可以用 cardHeaderHeight 替代了 |
cardHeadHeight 跟 cardHeadPadding 不冲突, minHeight: cardHeadHeight,如果title的元素高度超过minHeight,那也是要撑开的,至于cardHeadHeight为undefined要看一下 |
没有初始化,应该是之前改动的 bug,可以改了 |
嗯嗯,应该是后面的改动把 cardHeaderHeight 跟 cardHeadHeight 搞混了。 |
@MadCcc v4中的minHeight是48px,v5的要跟他一样是吧, 我看cardHeaderHeight现在计算出来是56px |
这个 min-height 应该是为了 extra 设置的,防止高度缩了。可以试下 extra 换成标准 Button 高度会不会撑开,应该是保持一样的 |
#15668 按这个说法应该还是 56 才对? |
这里面的这个说法是不是在v4没有做相应的修改啊,因为按里面说的做是需要把padding去掉的,然后子元素垂直居中。 |
覆盖率掉了,merge 一下 base 吧 |
done |
merge 一下 base 看看 argos |
咋没见到 argos |
改了之后 header 变矮了? |
感觉可以接受?56 是 4 的倍数,更合理些 |
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
close #39643
💡 Background and solution
📝 Changelog
☑️ Self-Check before Merge