add rect-avi to shell

This commit is contained in:
Samuel Newman
2026-01-13 18:46:46 +02:00
parent 3fe4effe9d
commit 9711e212f2
+3 -3
View File
@@ -78,7 +78,7 @@ let ProfileHeaderShell = ({
(
uri: string,
thumbRect: MeasuredDimensions | null,
type: 'circle-avi' | 'image' = 'circle-avi',
type: 'circle-avi' | 'rect-avi' | 'image' = 'circle-avi',
) => {
openLightbox({
images: [
@@ -87,7 +87,7 @@ let ProfileHeaderShell = ({
thumbUri: uri,
thumbRect,
dimensions:
type === 'circle-avi'
type === 'circle-avi' || type === 'rect-avi'
? {
// It's fine if it's actually smaller but we know it's 1:1.
height: 1000,
@@ -129,7 +129,7 @@ let ProfileHeaderShell = ({
} else {
const modui = moderation.ui('avatar')
const avatar = profile.avatar
const type = profile.associated?.labeler ? 'image' : 'circle-avi'
const type = profile.associated?.labeler ? 'rect-avi' : 'circle-avi'
if (avatar && !(modui.blur && modui.noOverride)) {
runOnUI(() => {
'worklet'