Fix Image Options not opening on web (#10544)

This commit is contained in:
RetroSunstar
2026-05-21 17:32:29 +01:00
committed by GitHub
parent 901b1a3a9e
commit 0858010a5d
3 changed files with 26 additions and 7 deletions
+4 -5
View File
@@ -260,16 +260,15 @@ function LightboxGallery({
<Menu.Root>
<Menu.Trigger label={_(msg`Image options`)}>
{({props}) => (
<Pressable
{...props}
accessible={false}
style={[a.absolute, styles.menuBtn, delayedFadeInAnim]}>
<View style={[a.absolute, styles.menuBtn, delayedFadeInAnim]}>
<CircleChromeButton
{...props}
accessible={false}
icon={EllipsisIcon}
iconStyle={{transform: [{rotate: '90deg'}]}}
label={_(msg`Image options`)}
/>
</Pressable>
</View>
)}
</Menu.Trigger>
<Menu.Outer>
@@ -17,7 +17,15 @@ type Props = {
label: string
onPress?: PressableProps['onPress']
testID?: string
}
} & Omit<
PressableProps,
| 'onPress'
| 'style'
| 'testID'
| 'accessibilityRole'
| 'accessibilityLabel'
| 'accessibilityHint'
>
const SIZE = 44
const RADIUS = 24
@@ -29,9 +37,11 @@ export function CircleChromeButton({
label,
onPress,
testID,
...rest
}: Props) {
return (
<Pressable
{...rest}
accessibilityRole="button"
accessibilityLabel={label}
accessibilityHint=""
@@ -17,7 +17,15 @@ type Props = {
label: string
onPress?: PressableProps['onPress']
testID?: string
}
} & Omit<
PressableProps,
| 'onPress'
| 'style'
| 'testID'
| 'accessibilityRole'
| 'accessibilityLabel'
| 'accessibilityHint'
>
const SIZE = 44
const RADIUS = 24
@@ -29,9 +37,11 @@ export function CircleChromeButton({
label,
onPress,
testID,
...rest
}: Props) {
return (
<Pressable
{...rest}
accessibilityRole="button"
accessibilityLabel={label}
accessibilityHint=""