fix(Tour): solve the Tour title will cover the close button at a certain length issue (#50942)

This commit is contained in:
kiner-tang 2024-09-22 22:03:33 +08:00 committed by GitHub
parent 0401475eb4
commit aa70d29d30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -143,7 +143,8 @@ const genBaseStyle: GenerateStyle<TourToken> = (token) => {
},
[`${componentCls}-header`]: {
padding: `${unit(padding)} ${unit(padding)} ${unit(paddingXS)}`,
width: `calc(100% - ${unit(closeBtnSize)})`,
wordBreak: 'break-word',
[`${componentCls}-title`]: {
fontWeight: fontWeightStrong,
},