mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
chore(mentions): improve code style (#55653)
Co-authored-by: 遇见同学 <1875694521@qq.com>
This commit is contained in:
@@ -283,7 +283,7 @@ const genMentionsStyle: GenerateStyle<MentionsToken> = (token) => {
|
||||
|
||||
// ========================= AllowClear =========================
|
||||
{
|
||||
[`&-has-suffix`]: {
|
||||
'&-has-suffix': {
|
||||
'> textarea': {
|
||||
paddingInlineEnd: calc(token.paddingXXS)
|
||||
.mul(1.5)
|
||||
@@ -304,12 +304,12 @@ const genMentionsStyle: GenerateStyle<MentionsToken> = (token) => {
|
||||
},
|
||||
// ============================ Size ============================
|
||||
{
|
||||
[`&-lg`]: {
|
||||
'&-lg': {
|
||||
'--mentions-padding-inline': token.paddingInlineLG,
|
||||
'--mentions-padding-block': token.paddingBlockLG,
|
||||
'--mentions-control-height': token.controlHeightLG,
|
||||
},
|
||||
[`&-sm`]: {
|
||||
'&-sm': {
|
||||
'--mentions-padding-inline': token.paddingInlineSM,
|
||||
'--mentions-padding-block': token.paddingBlockSM,
|
||||
'--mentions-control-height': token.controlHeightSM,
|
||||
|
||||
Reference in New Issue
Block a user