diff --git a/src/view/com/util/UserAvatar.tsx b/src/view/com/util/UserAvatar.tsx
index 3a7dcca3dc..97cd831b39 100644
--- a/src/view/com/util/UserAvatar.tsx
+++ b/src/view/com/util/UserAvatar.tsx
@@ -98,6 +98,13 @@ let DefaultAvatar = ({
size: number
}): React.ReactNode => {
const finalShape = overrideShape ?? (type === 'user' ? 'circle' : 'square')
+
+ const aviStyle = useMemo(() => {
+ if (finalShape === 'square') {
+ return {borderRadius: size > 32 ? 8 : 3, overflow: 'hidden'} as const
+ }
+ }, [finalShape, size])
+
if (type === 'algo') {
// TODO: shape=circle
// Font Awesome Pro 6.4.0 by @fontawesome -https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc.
@@ -108,7 +115,8 @@ let DefaultAvatar = ({
height={size}
viewBox="0 0 32 32"
fill="none"
- stroke="none">
+ stroke="none"
+ style={aviStyle}>
+ stroke="none"
+ style={aviStyle}>
+ stroke="none"
+ style={aviStyle}>
{finalShape === 'square' ? (
+ stroke="none"
+ style={aviStyle}>