mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-18 19:39:51 +08:00
fix: Apply max width to confirm modal so that children's width will not increase dramatically (#51988)
Co-authored-by: Suah Hoong Quan <hoongquan.suah@antgroup.com>
This commit is contained in:
parent
615723a5fd
commit
17d741c553
@ -66,6 +66,8 @@ const genModalConfirmStyle: GenerateStyle<ModalToken> = (token) => {
|
|||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
flex: 'auto',
|
flex: 'auto',
|
||||||
rowGap: token.marginXS,
|
rowGap: token.marginXS,
|
||||||
|
// https://github.com/ant-design/ant-design/issues/51912
|
||||||
|
maxWidth: `calc(100% - ${unit(token.calc(token.marginSM).equal())})`,
|
||||||
},
|
},
|
||||||
|
|
||||||
// https://github.com/ant-design/ant-design/issues/48159
|
// https://github.com/ant-design/ant-design/issues/48159
|
||||||
|
Loading…
Reference in New Issue
Block a user