From aa70d29d3030d61d5cf51c91659fded1045b10c0 Mon Sep 17 00:00:00 2001 From: kiner-tang <1127031143@qq.com> Date: Sun, 22 Sep 2024 22:03:33 +0800 Subject: [PATCH] fix(Tour): solve the Tour title will cover the close button at a certain length issue (#50942) --- components/tour/style/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/tour/style/index.ts b/components/tour/style/index.ts index d707b4c159..3feda6117b 100644 --- a/components/tour/style/index.ts +++ b/components/tour/style/index.ts @@ -143,7 +143,8 @@ const genBaseStyle: GenerateStyle = (token) => { }, [`${componentCls}-header`]: { padding: `${unit(padding)} ${unit(padding)} ${unit(paddingXS)}`, - + width: `calc(100% - ${unit(closeBtnSize)})`, + wordBreak: 'break-word', [`${componentCls}-title`]: { fontWeight: fontWeightStrong, },