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: fix the flex gap problem #48522

Merged
merged 1 commit into from Apr 18, 2024
Merged

fix: fix the flex gap problem #48522

merged 1 commit into from Apr 18, 2024

Conversation

nova1751
Copy link
Contributor

@nova1751 nova1751 commented Apr 17, 2024

中文版模板 / 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

#48505

💡 Background and solution

Related to PR #48091.
Css attribute gap in flex item still takes effect when the DOM element size is set to 0. Setting a negative margin can solve this problem.

📝 Changelog

Language Changelog
🇺🇸 English Fix the upload picture card animation issue
🇨🇳 Chinese 修复upload组件图片卡的动画效果

☑️ 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

Copy link

stackblitz bot commented Apr 17, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link
Contributor

github-actions bot commented Apr 17, 2024

👁 Visual Regression Report for PR #48522 Passed ✅

🎯 Target branch: master (273104c)
📖 View Full Report ↗︎

🎊 Congrats! No visual-regression diff found.

Copy link
Contributor

github-actions bot commented Apr 17, 2024

Preview is ready

@nova1751
Copy link
Contributor Author

Smooth again. 🥳

Upload.-.Ant.Design.18.-.-.Microsoft.Edge.2024-04-18.00-49-18.mp4

Copy link

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.

Copy link

codecov bot commented Apr 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (273104c) to head (32ebbad).

Additional details and impacted files
@@            Coverage Diff            @@
##            master    #48522   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          744       744           
  Lines        12883     12883           
  Branches      3369      3369           
=========================================
  Hits         12883     12883           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@afc163 afc163 merged commit c8f6aee into ant-design:master Apr 18, 2024
65 of 66 checks passed
height: 0,
padding: 0,
opacity: 0,
margin: `calc(${token.marginXS} / -2)`,
Copy link
Member

Choose a reason for hiding this comment

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

token.calc(token.marginXS).div(-2).equal()

Copy link
Member

Choose a reason for hiding this comment

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

数值模式下会直接计算

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So should I make a new PR for this?

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.

None yet

3 participants