Nicer 'post processing status' in the composer (#1472)
parent
8b8fba7284
commit
753fb8bfbc
|
@ -285,11 +285,6 @@ export const ComposePost = observer(function ComposePost({
|
||||||
</View>
|
</View>
|
||||||
)}
|
)}
|
||||||
</View>
|
</View>
|
||||||
{isProcessing ? (
|
|
||||||
<View style={[pal.btn, styles.processingLine]}>
|
|
||||||
<Text style={pal.text}>{processingState}</Text>
|
|
||||||
</View>
|
|
||||||
) : undefined}
|
|
||||||
{store.preferences.requireAltTextEnabled && gallery.needsAltText && (
|
{store.preferences.requireAltTextEnabled && gallery.needsAltText && (
|
||||||
<View style={[styles.reminderLine, pal.viewLight]}>
|
<View style={[styles.reminderLine, pal.viewLight]}>
|
||||||
<View style={styles.errorIcon}>
|
<View style={styles.errorIcon}>
|
||||||
|
@ -374,6 +369,12 @@ export const ComposePost = observer(function ComposePost({
|
||||||
</View>
|
</View>
|
||||||
) : undefined}
|
) : undefined}
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
{isProcessing ? (
|
||||||
|
<View style={[pal.viewLight, styles.processingLine]}>
|
||||||
|
<ActivityIndicator />
|
||||||
|
<Text style={pal.textLight}>{processingState}</Text>
|
||||||
|
</View>
|
||||||
|
) : undefined}
|
||||||
{!extLink && suggestedLinks.size > 0 ? (
|
{!extLink && suggestedLinks.size > 0 ? (
|
||||||
<View style={s.mb5}>
|
<View style={s.mb5}>
|
||||||
{Array.from(suggestedLinks)
|
{Array.from(suggestedLinks)
|
||||||
|
@ -435,11 +436,11 @@ const styles = StyleSheet.create({
|
||||||
paddingVertical: 6,
|
paddingVertical: 6,
|
||||||
},
|
},
|
||||||
processingLine: {
|
processingLine: {
|
||||||
borderRadius: 6,
|
flexDirection: 'row',
|
||||||
paddingHorizontal: 8,
|
alignItems: 'center',
|
||||||
paddingVertical: 6,
|
gap: 8,
|
||||||
marginHorizontal: 15,
|
paddingHorizontal: 26,
|
||||||
marginBottom: 6,
|
paddingVertical: 12,
|
||||||
},
|
},
|
||||||
errorLine: {
|
errorLine: {
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
|
|
Loading…
Reference in New Issue