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:
SUAH HOONG QUAN 2024-12-14 22:53:01 +08:00 committed by GitHub
parent 615723a5fd
commit 17d741c553
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,6 +66,8 @@ const genModalConfirmStyle: GenerateStyle<ModalToken> = (token) => {
flexDirection: 'column',
flex: 'auto',
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