From d76636ac9571be419be2a1bbafc67c75673b8b51 Mon Sep 17 00:00:00 2001 From: Jung Min O Date: Thu, 1 Dec 2022 16:15:30 +0900 Subject: [PATCH] style: modal content width issue without modal icon (#39047) * Fix modal width issue without modal icon * Update index.tsx * Update index.tsx * Apply suggestions from code review Co-authored-by: afc163 --- components/modal/style/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/modal/style/index.tsx b/components/modal/style/index.tsx index 350bad8d40..e2c9ee44cb 100644 --- a/components/modal/style/index.tsx +++ b/components/modal/style/index.tsx @@ -297,6 +297,7 @@ const genModalConfirmStyle: GenerateStyle = (token) => { [`+ ${confirmComponentCls}-content`]: { marginBlockStart: token.marginXS, + flexBasis: "100%", }, }, @@ -317,7 +318,6 @@ const genModalConfirmStyle: GenerateStyle = (token) => { // `content` after `icon` should set marginLeft [`+ ${confirmComponentCls}-title + ${confirmComponentCls}-content`]: { marginInlineStart: token.modalConfirmIconSize + token.marginSM, - flexBasis: '100%', }, }, },