Browse Source

fix: Empty style in small width container (#41727)

close #41726
pull/41732/head
afc163 2 years ago
committed by GitHub
parent
commit
4b2c5ded8d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      components/empty/style/index.ts
  2. 10
      components/select/style/dropdown.tsx

1
components/empty/style/index.ts

@ -34,6 +34,7 @@ const genSharedEmptyStyle: GenerateStyle<EmptyToken> = (token): CSSObject => {
},
svg: {
maxWidth: '100%',
height: '100%',
margin: 'auto',
},

10
components/select/style/dropdown.tsx

@ -84,16 +84,6 @@ const genSingleStyle: GenerateStyle<SelectToken> = (token) => {
display: 'none',
},
'&-empty': {
color: token.colorTextDisabled,
},
// ========================= Options =========================
[`${selectItemCls}-empty`]: {
...genItemStyle(token),
color: token.colorTextDisabled,
},
[`${selectItemCls}`]: {
...genItemStyle(token),
cursor: 'pointer',

Loading…
Cancel
Save