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(Form): solve form label offset not working in vertical layout issue #43155

Merged
merged 1 commit into from Jun 24, 2023

Conversation

kiner-tang
Copy link
Member

@kiner-tang kiner-tang commented Jun 24, 2023

[中文版模板 / Chinese template]

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • Component style update
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Internationalization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Workflow
  • Other (about what?)

🔗 Related issue link

fix #43154

💡 Background and solution

📝 Changelog

Language Changelog
🇺🇸 English solve form label offset not working in vertical layout issue
🇨🇳 Chinese 解决表单标签的偏移值在垂直布局中不生效的问题

☑️ Self-Check before Merge

⚠️ Please check all items below before requesting a reviewing. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

🚀 Summary

🤖 Generated by Copilot at 1efe15f

Refactored the form style module and removed unnecessary code. This improves the readability and consistency of the components/form/style/index.ts file.

🔍 Walkthrough

🤖 Generated by Copilot at 1efe15f

  • Reorder import modules to follow convention of external, internal, and relative modules (link)
  • Remove margin property from genInlineStyle function to avoid duplication and conflicts with genFormStyle function (link)

@kiner-tang kiner-tang requested a review from MadCcc June 24, 2023 03:14
@github-actions
Copy link
Contributor

github-actions bot commented Jun 24, 2023

@github-actions
Copy link
Contributor

size-limit report 📦

Path Size
./dist/antd.min.js 376.76 KB (+13 B 🔺)
./dist/antd-with-locales.min.js 436.18 KB (+11 B 🔺)

@codecov
Copy link

codecov bot commented Jun 24, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (7a7ee61) 100.00% compared to head (1efe15f) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##            master    #43155   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          648       648           
  Lines        10961     10961           
  Branches      2975      2975           
=========================================
  Hits         10961     10961           
Impacted Files Coverage Δ
components/form/style/index.ts 100.00% <ø> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -389,7 +389,6 @@ const genInlineStyle: GenerateStyle<FormToken> = (token) => {
};

const makeVerticalLayoutLabel = (token: FormToken): CSSObject => ({
margin: 0,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没有 argos 慌的很。

Copy link
Member

@afc163 afc163 Jun 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

看上去没啥问题 #43159

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我也是心慌慌,但是 cicleCI 至今申诉无果,提了 n 个工单都没有回音

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

单独开了一个 PR 测:#43159

@afc163 afc163 merged commit 5728abe into master Jun 24, 2023
93 checks passed
@afc163 afc163 deleted the fix-form-label branch June 24, 2023 05:59
@PeachScript PeachScript mentioned this pull request Jun 25, 2023
20 tasks
@shengwenzheng
Copy link

还是不生效啊?5.11.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Form Label Offset Not Working
3 participants