ant-design / ant-design-mobile

Essential UI blocks for building mobile web apps.
https://mobile.ant.design
MIT License
11.61k stars 2.39k forks source link

fix: for inconsistent switch width changes #6421

Closed 1587315093 closed 10 months ago

1587315093 commented 10 months ago

resolved: #6418

原因是 两个class 的 margin 数值不一致的问题

修复前的margin: 开状态 0 34px 0 10px。 关状态: 0 8px 0 33px

修复后的margin: 开状态 0 34px 0 8px。 关状态: 0 8px 0 34px

github-actions[bot] commented 10 months ago

PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-6421.surge.sh

codecov[bot] commented 10 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (f2e166d) 92.10% compared to head (0716f4c) 92.10%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #6421 +/- ## ======================================= Coverage 92.10% 92.10% ======================================= Files 316 316 Lines 6861 6861 Branches 1719 1719 ======================================= Hits 6319 6319 Misses 504 504 Partials 38 38 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.