mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
fix: Avatar group responsive font not working (#34722)
* fix: Avatar group responsive font not working * Update index.less * chore: 兼容IE * Update components/avatar/style/index.less * Update avatar.tsx --------- Co-authored-by: Sven <laishiwen@coding.net> Co-authored-by: afc163 <afc163@gmail.com> Co-authored-by: lijianan <574980606@qq.com>
This commit is contained in:
parent
c4040ec81b
commit
90d6377d65
@ -128,7 +128,7 @@ const InternalAvatar: React.ForwardRefRenderFunction<HTMLSpanElement, AvatarProp
|
||||
width: currentSize,
|
||||
height: currentSize,
|
||||
lineHeight: `${currentSize}px`,
|
||||
fontSize: icon ? currentSize / 2 : 18,
|
||||
fontSize: currentSize && (icon || children) ? currentSize / 2 : 18,
|
||||
}
|
||||
: {};
|
||||
}, [screens, size]);
|
||||
|
Loading…
Reference in New Issue
Block a user