From ecd2b7372b261e79edb54eb99fbca794c6f9fbc6 Mon Sep 17 00:00:00 2001 From: muxin <434980373@qq.com> Date: Sun, 4 Dec 2022 23:34:58 +0800 Subject: [PATCH] style(Modal): fix content break lines (#39249) close #39247 --- components/modal/style/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/modal/style/index.tsx b/components/modal/style/index.tsx index e2c9ee44cb..c5b6145634 100644 --- a/components/modal/style/index.tsx +++ b/components/modal/style/index.tsx @@ -297,7 +297,8 @@ const genModalConfirmStyle: GenerateStyle = (token) => { [`+ ${confirmComponentCls}-content`]: { marginBlockStart: token.marginXS, - flexBasis: "100%", + flexBasis: '100%', + maxWidth: `calc(100% - ${token.modalConfirmIconSize + token.marginSM}px)`, }, },