[FIX] Decrease space between sections on lists (#4543)

Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
Reinaldo Neto 2022-09-23 17:24:37 -03:00 committed by Diego Mello
parent aba375b7fe
commit f6229eecb4
9 changed files with 24 additions and 24 deletions

File diff suppressed because one or more lines are too long

View File

@ -5,7 +5,7 @@ import scrollPersistTaps from '../../lib/methods/helpers/scrollPersistTaps';
const styles = StyleSheet.create({ const styles = StyleSheet.create({
container: { container: {
paddingVertical: 8 paddingVertical: 16
} }
}); });

View File

@ -9,7 +9,7 @@ import I18n from '../../i18n';
const styles = StyleSheet.create({ const styles = StyleSheet.create({
container: { container: {
paddingVertical: 4, paddingTop: 8,
paddingHorizontal: PADDING_HORIZONTAL paddingHorizontal: PADDING_HORIZONTAL
}, },
text: { text: {

View File

@ -5,7 +5,7 @@ import { Header } from '.';
const styles = StyleSheet.create({ const styles = StyleSheet.create({
container: { container: {
marginBottom: 8 marginBottom: 16
} }
}); });

View File

@ -2,6 +2,6 @@ import { StyleSheet } from 'react-native';
export const styles = StyleSheet.create({ export const styles = StyleSheet.create({
contentContainerStyleFlatList: { contentContainerStyleFlatList: {
paddingVertical: 32 paddingVertical: 16
} }
}); });

View File

@ -33,7 +33,7 @@ const styles = StyleSheet.create({
marginTop: 16 marginTop: 16
}, },
containerStyle: { containerStyle: {
marginBottom: 28 marginBottom: 16
}, },
list: { list: {
width: '100%' width: '100%'
@ -53,8 +53,7 @@ const styles = StyleSheet.create({
paddingHorizontal: 16 paddingHorizontal: 16
}, },
buttonCreate: { buttonCreate: {
marginHorizontal: 16, margin: 16
marginTop: 24
} }
}); });

View File

@ -181,6 +181,7 @@ const NotificationPreferencesView = (): React.ReactElement => {
testID='notification-preference-view-alert' testID='notification-preference-view-alert'
onChangeValue={saveNotificationSettings} onChangeValue={saveNotificationSettings}
/> />
<List.Separator />
<RenderListPicker <RenderListPicker
preference='audioNotificationValue' preference='audioNotificationValue'
room={room} room={room}

View File

@ -64,7 +64,7 @@ export default function ActionsSection({ rid, t, joined }: IActionsSection): Rea
}; };
return ( return (
<View style={{ paddingTop: canAddUser || canInviteUser ? 16 : 0, paddingBottom: canAddUser || canInviteUser ? 8 : 0 }}> <View style={{ paddingTop: canAddUser || canInviteUser ? 16 : 0, paddingBottom: canAddUser || canInviteUser ? 16 : 0 }}>
{['c', 'p'].includes(t) && canAddUser ? ( {['c', 'p'].includes(t) && canAddUser ? (
<> <>
<List.Separator /> <List.Separator />

View File

@ -44,8 +44,8 @@ const STATUS: IStatus[] = [
const styles = StyleSheet.create({ const styles = StyleSheet.create({
inputContainer: { inputContainer: {
marginTop: 32, marginTop: 16,
marginBottom: 32 marginBottom: 16
}, },
inputLeft: { inputLeft: {
position: 'absolute', position: 'absolute',