hide alt text note after it's added

This commit is contained in:
Samuel Newman
2026-03-26 11:36:08 +02:00
parent 4d0774b75e
commit c395e0705e
2 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ export function GifAltTextDialogLoaded({
</Text> </Text>
</TouchableOpacity> </TouchableOpacity>
<Admonition type="tip" style={[a.mt_sm]}> <Admonition type="info" style={[a.mt_sm]}>
<Trans> <Trans>
Alt text describes images for blind and low-vision users, and helps Alt text describes images for blind and low-vision users, and helps
give context to everyone. give context to everyone.
+8 -6
View File
@@ -120,12 +120,14 @@ const GalleryInner = ({images, containerInfo, dispatch}: GalleryInnerProps) => {
) )
})} })}
</View> </View>
<Admonition type="tip" style={[a.mt_sm]}> {images.some(image => !image.alt) && (
<Trans> <Admonition type="info" style={[a.mt_sm]}>
Alt text describes images for blind and low-vision users, and helps <Trans>
give context to everyone. Alt text describes images for blind and low-vision users, and helps
</Trans> give context to everyone.
</Admonition> </Trans>
</Admonition>
)}
</> </>
) : null ) : null
} }