fix: confirm content not centered when no icon (#48173)

* fix: confirm content not centered when no icon

* chore: add comment
This commit is contained in:
afc163 2024-03-30 22:12:52 +08:00 committed by GitHub
parent d51d1bc929
commit 663004b426
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -63,6 +63,10 @@ const genModalConfirmStyle: GenerateStyle<ModalToken> = (token) => {
flexDirection: 'column',
flex: 'auto',
rowGap: token.marginXS,
},
// https://github.com/ant-design/ant-design/issues/48159
[`${token.iconCls} + ${confirmComponentCls}-paragraph`]: {
maxWidth: `calc(100% - ${unit(
token.calc(token.modalConfirmIconSize).add(token.marginSM).equal(),
)})`,