diff --git a/components/modal/style/confirm.ts b/components/modal/style/confirm.ts index 9c73228797..874d11e4fe 100644 --- a/components/modal/style/confirm.ts +++ b/components/modal/style/confirm.ts @@ -66,6 +66,8 @@ const genModalConfirmStyle: GenerateStyle = (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