mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-14 05:42:54 +08:00
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 <afc163@gmail.com>
This commit is contained in:
parent
30e2e68bce
commit
d76636ac95
@ -297,6 +297,7 @@ const genModalConfirmStyle: GenerateStyle<ModalToken> = (token) => {
|
||||
|
||||
[`+ ${confirmComponentCls}-content`]: {
|
||||
marginBlockStart: token.marginXS,
|
||||
flexBasis: "100%",
|
||||
},
|
||||
},
|
||||
|
||||
@ -317,7 +318,6 @@ const genModalConfirmStyle: GenerateStyle<ModalToken> = (token) => {
|
||||
// `content` after `icon` should set marginLeft
|
||||
[`+ ${confirmComponentCls}-title + ${confirmComponentCls}-content`]: {
|
||||
marginInlineStart: token.modalConfirmIconSize + token.marginSM,
|
||||
flexBasis: '100%',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user