-
-
Notifications
You must be signed in to change notification settings - Fork 50.5k
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: TextArea showCount style while using with Form #28130
Conversation
Size Change: +66 B (0%) Total Size: 790 kB
ℹ️ View Unchanged
|
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 2fd8750:
|
components/input/style/index.less
Outdated
@@ -46,6 +46,9 @@ | |||
|
|||
&-textarea { | |||
&-show-count::after { | |||
position: absolute; | |||
right: 0; | |||
bottom: -22px; |
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.
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.
Done
@afc163 请问 argos ci 里的错误是什么意思? |
components/input/style/index.less
Outdated
@@ -47,6 +47,7 @@ | |||
&-textarea { | |||
&-show-count::after { | |||
display: block; | |||
width: 100%; |
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.
加这个的目的是?
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.
加这个的目的是?
原来宽度是占满一行的,absolute 脱离文档流之后宽度就是内容的宽度了,此时就没有居右的效果了,宽度设为 100% 效果就和原来一样了。
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.
如果针对 absolute 的情况就放到 form 的样式去,不影响原来的样式。
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.
Done
已修复,可以 rebase 下 master |
78ade73
to
2fd8750
Compare
* fix: update CarouselRef goTo args (ant-design#28090) * chore: 🆙 upgrade react 17 (ant-design#27268) ant-design#26136 * fix BUNDLESIZE_GITHUB_TOKEN * docs: supplement Form.List errors (ant-design#28117) * docs: set image preview false in placeholder demo (ant-design#28140) * docs(📖): update v4 migration about less variables change close ant-design#28141 * test: skip List loading demo (ant-design#28133) * fix: TextArea showCount style while using with Form (ant-design#28130) * chore: optimize useModal performance - Do not trigger rerender of parent component (ant-design#28122) * fix: Add type of initialValue prop to Form.List (ant-design#28153) * fix: Add type of initialValue prop to Form.List * Update index.zh-CN.md * Update index.en-US.md * fix(Tree): fix tree drop indicator default direction (ant-design#28150) Co-authored-by: Jarret Moses <jarret.moses@gmail.com> Co-authored-by: Tom Xu <ycxzhkx@gmail.com> Co-authored-by: afc163 <afc163@gmail.com> Co-authored-by: Liming Jin <jinliming2@gmail.com> Co-authored-by: stygian-desolator <73412177+stygian-desolator@users.noreply.github.com> Co-authored-by: 骗你是小猫咪 <darryshaw@gmail.com> Co-authored-by: einq7 <50612752+AlanCutFlim@users.noreply.github.com> Co-authored-by: Elaina Cherudim <shr9192@gmail.com> Co-authored-by: Debiancc <never.be.evil.debian@gmail.com> Co-authored-by: Jingsong Gao <kingsongao1221@gmail.com>
🤔 This is a ...
🔗 Related issue link
#28123
💡 Background and solution
Before:
After:
📝 Changelog
☑️ Self Check before Merge