mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
fixing styles on drawers
This commit is contained in:
parent
0f8a90fb85
commit
13a7081361
@ -83,8 +83,9 @@ export function Cards({ openRegistry, openContact }) {
|
||||
</>
|
||||
)}
|
||||
{ !state.tabbed && (
|
||||
<SafeAreaView edges={['top', 'right']} style={styles.searcharea}>
|
||||
<View style={styles.searchbar}>
|
||||
<>
|
||||
<View style={styles.searcharea}>
|
||||
<SafeAreaView edges={['top', 'right']} style={styles.searchbar}>
|
||||
{ state.sorting && (
|
||||
<TouchableOpacity style={styles.sort} onPress={actions.unsort}>
|
||||
<Ionicons style={styles.icon} name="menufold" size={18} color={Colors.text} />
|
||||
@ -103,13 +104,16 @@ export function Cards({ openRegistry, openContact }) {
|
||||
<TouchableOpacity style={styles.add} onPress={openRegistry}>
|
||||
<Ionicons name={'adduser'} size={16} color={Colors.white} style={[styles.box, { transform: [ { rotateY: "180deg" }, ]} ]}/>
|
||||
</TouchableOpacity>
|
||||
</SafeAreaView>
|
||||
</View>
|
||||
<SafeAreaView edges={['right']} style={styles.searcharea}>
|
||||
<FlatList style={styles.cards}
|
||||
data={state.cards}
|
||||
renderItem={({ item }) => <CardItem item={item} openContact={openContact} />}
|
||||
keyExtractor={item => item.cardId}
|
||||
/>
|
||||
</SafeAreaView>
|
||||
</>
|
||||
)}
|
||||
</View>
|
||||
);
|
||||
|
@ -20,7 +20,7 @@ export function ConversationHeader({ channel, closeConversation, openDetails })
|
||||
return (
|
||||
<View style={styles.title}>
|
||||
<View style={styles.subject}>
|
||||
<Text style={styles.subjectText}>{ state.subject }</Text>
|
||||
<Text style={styles.subjectText} numberOfLines={1} ellipsizeMode={'tail'}>{ state.subject }</Text>
|
||||
</View>
|
||||
<TouchableOpacity style={styles.action} onPress={setDetails}>
|
||||
<Ionicons name="setting" size={20} color={Colors.primary} />
|
||||
@ -48,7 +48,7 @@ export function Conversation({ channel, closeConversation, openDetails }) {
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<View style={styles.header}>
|
||||
<Text style={styles.subjectText}>{ state.subject }</Text>
|
||||
<Text style={styles.subjectText} numberOfLines={1} ellipsizeMode={'tail'}>{ state.subject }</Text>
|
||||
<TouchableOpacity style={styles.action} onPress={openDetails}>
|
||||
<Ionicons name="setting" size={20} color={Colors.primary} />
|
||||
</TouchableOpacity>
|
||||
|
@ -102,8 +102,9 @@ export function Registry({ closeRegistry, openContact }) {
|
||||
</>
|
||||
)}
|
||||
{ !state.tabbed && (
|
||||
<SafeAreaView edges={['right']}>
|
||||
<>
|
||||
<View style={styles.searcharea}>
|
||||
<SafeAreaView edges={['right']}>
|
||||
<View style={styles.searchbar}>
|
||||
{ state.busy && (
|
||||
<View style={styles.search}>
|
||||
@ -120,13 +121,16 @@ export function Registry({ closeRegistry, openContact }) {
|
||||
autoCapitalize="none" placeholderTextColor={Colors.disabled} placeholder="Server" />
|
||||
</View>
|
||||
</View>
|
||||
</SafeAreaView>
|
||||
</View>
|
||||
<SafeAreaView edges={['right']}>
|
||||
<FlatList style={styles.accounts}
|
||||
data={state.accounts}
|
||||
renderItem={({ item }) => <RegistryItem item={item} openContact={openContact} />}
|
||||
keyExtractor={item => item.guid}
|
||||
/>
|
||||
</SafeAreaView>
|
||||
</>
|
||||
)}
|
||||
</View>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user