Alt text for gifs (#3876)
* add alt text dialog * multiline alt text input * add pressable alt text badge * rename `ALT: ` to `Alt text: ` to avoid including old bad ones * reuse alt text reminder * reuse alt text reminder in gallery * add alt text reminder in the dialog itself * autofocus text input * reorder components to fix tab order * fix close btn position
This commit is contained in:
parent
ae7626ce6e
commit
c33c3b7d1e
9 changed files with 344 additions and 47 deletions
|
|
@ -46,7 +46,12 @@ export const ExternalEmbed = ({
|
|||
: undefined
|
||||
|
||||
return (
|
||||
<View style={[a.mb_xl, a.overflow_hidden, t.atoms.border_contrast_medium]}>
|
||||
<View
|
||||
style={[
|
||||
!gif && a.mb_xl,
|
||||
a.overflow_hidden,
|
||||
t.atoms.border_contrast_medium,
|
||||
]}>
|
||||
{link.isLoading ? (
|
||||
<Container style={loadingStyle}>
|
||||
<Loader size="xl" />
|
||||
|
|
@ -62,7 +67,7 @@ export const ExternalEmbed = ({
|
|||
</Container>
|
||||
) : linkInfo ? (
|
||||
<View style={{pointerEvents: !gif ? 'none' : 'auto'}}>
|
||||
<ExternalLinkEmbed link={linkInfo} />
|
||||
<ExternalLinkEmbed link={linkInfo} hideAlt />
|
||||
</View>
|
||||
) : null}
|
||||
<TouchableOpacity
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue