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:
Sven 2023-10-03 06:56:51 +08:00 committed by GitHub
parent c4040ec81b
commit 90d6377d65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]);