Skip to content

Commit

Permalink
Minor UI fixes (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaSat authored Jan 24, 2023
2 parents 55cb627 + 644ba3e commit 6dc7e81
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
19 changes: 16 additions & 3 deletions frontend/Pages/ContactsFeed/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ export const ContactsFeed: React.FC = () => {
return {
container: {
backgroundColor: theme.colors.background,
padding: 16,
paddingLeft: 16,
paddingRight: 16,
paddingBottom: 32,
borderTopRightRadius: 28,
borderTopLeftRadius: 28,
},
Expand Down Expand Up @@ -312,7 +314,7 @@ export const ContactsFeed: React.FC = () => {
{renderScene[tabKey]}
{privateKey && (
<AnimatedFAB
style={[styles.fab, { top: Dimensions.get('window').height - 200 }]}
style={[styles.fab, { top: Dimensions.get('window').height - 220 }]}
icon='account-multiple-plus-outline'
label='Label'
onPress={() => bottomSheetAddContactRef.current?.open()}
Expand All @@ -325,7 +327,6 @@ export const ContactsFeed: React.FC = () => {
<RBSheet
ref={bottomSheetProfileRef}
closeOnDragDown={true}
height={280}
customStyles={bottomSheetStyles}
>
<ProfileCard userPubKey={profileCardPubkey ?? ''} bottomSheetRef={bottomSheetProfileRef} />
Expand All @@ -341,6 +342,7 @@ export const ContactsFeed: React.FC = () => {
<Text variant='titleLarge'>{t('contactsFeed.addContactTitle')}</Text>
<Text variant='bodyMedium'>{t('contactsFeed.addContactDescription')}</Text>
<TextInput
style={styles.input}
mode='outlined'
label={t('contactsFeed.addContact') ?? ''}
onChangeText={setContactInput}
Expand All @@ -354,6 +356,7 @@ export const ContactsFeed: React.FC = () => {
}
/>
<Button
style={styles.addContactButton}
mode='contained'
disabled={!contactInput || contactInput === ''}
onPress={onPressAddContact}
Expand Down Expand Up @@ -396,6 +399,16 @@ const styles = StyleSheet.create({
justifyContent: 'space-between',
height: 70,
},
bottomSheet: {
paddingBottom: 24
},
input: {
marginTop: 16,
marginBottom: 16
},
addContactButton: {
marginBottom: 16
},
tab: {
flex: 1,
height: '100%',
Expand Down
2 changes: 1 addition & 1 deletion frontend/Pages/ConversationsFeed/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export const ConversationsFeed: React.FC = () => {
</View>
)}
<AnimatedFAB
style={[styles.fab, { top: Dimensions.get('window').height - 200 }]}
style={[styles.fab, { top: Dimensions.get('window').height - 220 }]}
icon='pencil-outline'
label='Label'
onPress={() => bottomSheetCreateRef.current?.open()}
Expand Down
2 changes: 1 addition & 1 deletion frontend/Pages/HomeFeed/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export const HomeFeed: React.FC<HomeFeedProps> = ({ navigation }) => {
)}
{privateKey && (
<AnimatedFAB
style={[styles.fab, { top: Dimensions.get('window').height - 200 }]}
style={[styles.fab, { top: Dimensions.get('window').height - 220 }]}
icon='pencil-outline'
label='Label'
onPress={() => navigate('Send')}
Expand Down

0 comments on commit 6dc7e81

Please sign in to comment.