-
-
Notifications
You must be signed in to change notification settings - Fork 49.3k
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: TimePicker panel align #25019
fix: TimePicker panel align #25019
Conversation
@@ -597,7 +597,7 @@ | |||
flex: 1 0 auto; | |||
width: 56px; | |||
margin: 0; | |||
padding: 0 0 194px 0; | |||
padding: 0 0 224px - @picker-time-panel-cell-height 0; |
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.
593 行使用了 height: 224px
,这里也用了 固定的 px,其实 224 px 是 8 倍 的 @picker-time-panel-cell-height
,表示 一个数列最多展示 8 条,要不要把这个提成个变量?
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.
对了,如果要提成变量的话,是提 8 还是 提 224,我觉得 8 ,这样都是倍数,224 的话,别人改成 225 226 显示的就不是整的,这样还是会出现 不对齐的问题。
如果不提变量,也行,默认 8 倍的
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.
再顺便说一句,224px - @picker-time-panel-cell-height 是 196
我试试,我用谷歌 |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit b58b2ee:
|
Codecov Report
@@ Coverage Diff @@
## master #25019 +/- ##
=======================================
Coverage 99.38% 99.38%
=======================================
Files 365 365
Lines 7294 7294
Branches 2030 1989 -41
=======================================
Hits 7249 7249
Misses 45 45 Continue to review full report at Codecov.
|
我这 Firefox |
大佬,换了种写法。兼容性好点。 |
中间那个往下滚应该会出一点 |
嗯,正常选是没事,但是继续滚动是会出现。 |
验证 DatePicker 中 time 选择https://ant.design/components/date-picker-cn/#components-date-picker-demo-presetted-ranges 验证 TimePicker 中 time 选择https://ant.design/components/time-picker-cn/#components-time-picker-demo-basic |
@zombieJ 这次两种情况都包上了。 |
PTAL |
/rebase |
2357f08
to
b58b2ee
Compare
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
📝 Changelog
☑️ Self Check before Merge