add rect-avi to shell
This commit is contained in:
@@ -78,7 +78,7 @@ let ProfileHeaderShell = ({
|
|||||||
(
|
(
|
||||||
uri: string,
|
uri: string,
|
||||||
thumbRect: MeasuredDimensions | null,
|
thumbRect: MeasuredDimensions | null,
|
||||||
type: 'circle-avi' | 'image' = 'circle-avi',
|
type: 'circle-avi' | 'rect-avi' | 'image' = 'circle-avi',
|
||||||
) => {
|
) => {
|
||||||
openLightbox({
|
openLightbox({
|
||||||
images: [
|
images: [
|
||||||
@@ -87,7 +87,7 @@ let ProfileHeaderShell = ({
|
|||||||
thumbUri: uri,
|
thumbUri: uri,
|
||||||
thumbRect,
|
thumbRect,
|
||||||
dimensions:
|
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.
|
// It's fine if it's actually smaller but we know it's 1:1.
|
||||||
height: 1000,
|
height: 1000,
|
||||||
@@ -129,7 +129,7 @@ let ProfileHeaderShell = ({
|
|||||||
} else {
|
} else {
|
||||||
const modui = moderation.ui('avatar')
|
const modui = moderation.ui('avatar')
|
||||||
const avatar = profile.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)) {
|
if (avatar && !(modui.blur && modui.noOverride)) {
|
||||||
runOnUI(() => {
|
runOnUI(() => {
|
||||||
'worklet'
|
'worklet'
|
||||||
|
|||||||
Reference in New Issue
Block a user