From ee6365514d65f0eab78985021c195075e7f93df8 Mon Sep 17 00:00:00 2001 From: trantus Date: Thu, 18 Jan 2024 20:16:28 +0100 Subject: [PATCH] fix: make alt text selectable in Lightbox --- src/view/com/lightbox/Lightbox.tsx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/view/com/lightbox/Lightbox.tsx b/src/view/com/lightbox/Lightbox.tsx index 2271bb9fb1..ee096b0d23 100644 --- a/src/view/com/lightbox/Lightbox.tsx +++ b/src/view/com/lightbox/Lightbox.tsx @@ -1,5 +1,5 @@ import React from 'react' -import {Pressable, StyleSheet, View} from 'react-native' +import {StyleSheet, View, Pressable} from 'react-native' import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' import ImageView from './ImageViewing' import {shareImageModal, saveImageToMediaLibrary} from 'lib/media/manip' @@ -107,12 +107,16 @@ function LightboxFooter({imageIndex}: {imageIndex: number}) { {altText ? ( setAltExpanded(!isAltExpanded)} + onLongPress={() => {}} accessibilityRole="button"> - - {altText} - + + + {altText} + + ) : null}