1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Partial fix #90

Now playing gifv won't interrupt existing audio playing. But when switching app state, it still will.
This commit is contained in:
Zhiyuan Zheng
2021-03-29 23:53:49 +02:00
parent c4ec88609e
commit 4be0fb5a5f
9 changed files with 47 additions and 23 deletions

View File

@ -138,6 +138,23 @@ const ComponentInstance: React.FC<Props> = ({
) : null}
<View style={styles.base}>
<View style={styles.inputRow}>
<TextInput
style={[
styles.prefix,
{
borderBottomColor: instanceQuery.isError
? theme.red
: theme.border
}
]}
editable={false}
children={
<Text
style={{ color: theme.primaryDefault }}
children='https://'
/>
}
/>
<TextInput
style={[
styles.textInput,
@ -246,6 +263,11 @@ const styles = StyleSheet.create({
flexDirection: 'row',
marginHorizontal: StyleConstants.Spacing.Global.PagePadding
},
prefix: {
borderBottomWidth: 1,
...StyleConstants.FontStyle.M,
paddingRight: StyleConstants.Spacing.XS
},
textInput: {
flex: 1,
borderBottomWidth: 1,