From 377cc21ce9af50b5c2a2019f36763d5cf3df1c4a Mon Sep 17 00:00:00 2001 From: ustcfury <94168407+ustcfury@users.noreply.github.com> Date: Thu, 16 Jan 2025 11:16:53 +0800 Subject: [PATCH] fix: fix input clear icon padding (#52407) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix #52345 Co-authored-by: 绍晗 --- components/input/style/index.ts | 1 + components/mentions/style/index.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/components/input/style/index.ts b/components/input/style/index.ts index 4ac3c73c5e..20dc670845 100644 --- a/components/input/style/index.ts +++ b/components/input/style/index.ts @@ -421,6 +421,7 @@ const genAllowClearStyle = (token: InputToken): CSSObject => { // ========================= Input ========================= [`${componentCls}-clear-icon`]: { margin: 0, + padding: 0, lineHeight: 0, color: token.colorTextQuaternary, fontSize: token.fontSizeIcon, diff --git a/components/mentions/style/index.ts b/components/mentions/style/index.ts index ad3472db10..213d69df83 100644 --- a/components/mentions/style/index.ts +++ b/components/mentions/style/index.ts @@ -126,6 +126,7 @@ const genMentionsStyle: GenerateStyle = (token) => { insetBlockStart: calc(fontSize).mul(lineHeight).mul(0.5).add(paddingBlock).equal(), transform: `translateY(-50%)`, margin: 0, + padding: 0, color: colorTextQuaternary, fontSize: fontSizeIcon, verticalAlign: -1,