diff --git a/src/screens/Profile/Header/index.tsx b/src/screens/Profile/Header/index.tsx
--- a/src/screens/Profile/Header/index.tsx
+++ b/src/screens/Profile/Header/index.tsx
@@ -17,6 +17,7 @@ } from '@atproto/api'
import {useIsFocused} from '@react-navigation/native'
import {sanitizeHandle} from '#/lib/strings/handles'
+import {useEnableSquareAvatars} from '#/state/preferences/enable-square-avatars'
import {useProfileShadow} from '#/state/cache/profile-shadow'
import {useModerationOpts} from '#/state/preferences/moderation-opts'
import {useSetLightStatusBar} from '#/state/shell/light-status-bar'
@@ -37,6 +38,7 @@ } from './ProfileHeaderStandard'
let ProfileHeaderLoading = (_props: {}): React.ReactNode => {
const t = useTheme()
+ const enableSquareAvatars = useEnableSquareAvatars()
return (
@@ -45,8 +47,13 @@ style={[
t.atoms.bg,
{borderColor: t.atoms.bg.backgroundColor},
styles.avi,
+ enableSquareAvatars && styles.aviSquare,
]}>
-
+
@@ -229,6 +236,9 @@ height: 94,
borderRadius: 47,
borderWidth: 2,
},
+ aviSquare: {
+ borderRadius: 10,
+ },
content: {
paddingTop: 12,
paddingHorizontal: 16,
@@ -239,5 +249,6 @@ flexDirection: 'row',
marginLeft: 'auto',
},
br45: {borderRadius: 45},
+ br8: {borderRadius: 8},
br50: {borderRadius: 50},
})
diff --git a/src/view/com/util/UserAvatar.tsx b/src/view/com/util/UserAvatar.tsx
--- a/src/view/com/util/UserAvatar.tsx
+++ b/src/view/com/util/UserAvatar.tsx
@@ -110,8 +110,6 @@ }): React.ReactNode => {
const finalShape = overrideShape ?? (type === 'user' ? 'circle' : 'square')
const t = useTheme()
- const enableSquareAvatars = useEnableSquareAvatars()
-
const aviStyle = useMemo(() => {
if (finalShape === 'square') {
return {borderRadius: size > 32 ? 8 : 3, overflow: 'hidden'} as const
@@ -206,7 +204,7 @@ viewBox="0 0 24 24"
fill="none"
stroke="none"
style={aviStyle}>
- {enableSquareAvatars ? (
+ {finalShape === 'square' ? (