mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
fix: margin problem in css value mode (#48569)
* fix: fix the flex gap problem * fix: adapt margin problem in css value mode --------- Co-authored-by: afc163 <afc163@gmail.com>
This commit is contained in:
@@ -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(),
|
||||
},
|
||||
});
|
||||
|
||||
@@ -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(),
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user