From 1c14a684fe66e3a2fb9e2442a6cb9f12ca6d51c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E7=88=B1=E5=90=83=E7=99=BD=E8=90=9D?= =?UTF-8?q?=E5=8D=9C?= Date: Tue, 18 Jul 2023 14:41:43 +0800 Subject: [PATCH] fix: label empty str line break (#43614) * fix: label empty str line break * chore: comment it --- components/form/style/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/form/style/index.ts b/components/form/style/index.ts index 757154595a..a78320f37c 100644 --- a/components/form/style/index.ts +++ b/components/form/style/index.ts @@ -222,7 +222,7 @@ const genFormItemStyle: GenerateStyle = (token) => { }, [`&${formItemCls}-no-colon::after`]: { - content: '" "', + content: '"\\a0"', }, }, }, @@ -397,7 +397,8 @@ const makeVerticalLayoutLabel = (token: FormToken): CSSObject => ({ margin: 0, '&::after': { - display: 'none', + // https://github.com/ant-design/ant-design/issues/43538 + visibility: 'hidden', }, }, });