From 17d741c553ac93aefacb8e9012ddd4129107771d Mon Sep 17 00:00:00 2001 From: SUAH HOONG QUAN <46003038+quan060798@users.noreply.github.com> Date: Sat, 14 Dec 2024 22:53:01 +0800 Subject: [PATCH] fix: Apply max width to confirm modal so that children's width will not increase dramatically (#51988) Co-authored-by: Suah Hoong Quan --- components/modal/style/confirm.ts | 2 ++ 1 file changed, 2 insertions(+) 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