Skip to content

Commit

Permalink
fix: margin problem in css value mode (#48569)
Browse files Browse the repository at this point in the history
* fix: fix the flex gap problem

* fix: adapt margin problem in css value mode

---------

Co-authored-by: afc163 <afc163@gmail.com>
  • Loading branch information
nova1751 and afc163 committed Apr 22, 2024
1 parent c321492 commit c3f5e27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/upload/style/motion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const genMotionStyle: GenerateStyle<UploadToken> = (token) => {
height: 0,
padding: 0,
opacity: 0,
margin: `calc(${token.marginXS} / -2)`,
margin: token.calc(token.marginXS).div(-2).equal(),
},
});

Expand All @@ -24,7 +24,7 @@ const genMotionStyle: GenerateStyle<UploadToken> = (token) => {
height: 0,
padding: 0,
opacity: 0,
margin: `calc(${token.marginXS} / -2)`,
margin: token.calc(token.marginXS).div(-2).equal(),
},
});

Expand Down

0 comments on commit c3f5e27

Please sign in to comment.