MOB: Settings paddings (#2120)

padding tweaks
This commit is contained in:
ameer2468 authored and GitHub committed 2024-02-22 13:08:41 +00:00
1 parent d007b55763
commit a4b7296b45
11 files changed
+15 -15

No files matched your search

+2 -2
View File
@@ -50,7 +50,7 @@ export const Locations = ({ redirectToLocationSettings }: Props) => {
SettingsStackScreenProps<'Settings'>['navigation'] SettingsStackScreenProps<'Settings'>['navigation']
>(); >();
return ( return (
<ScreenContainer scrollview={false} style={tw`relative px-7 py-0`}> <ScreenContainer scrollview={false} style={tw`relative px-6 py-0`}>
<Pressable <Pressable
style={tw`absolute bottom-7 right-7 z-10 h-12 w-12 items-center justify-center rounded-full bg-accent`} style={tw`absolute bottom-7 right-7 z-10 h-12 w-12 items-center justify-center rounded-full bg-accent`}
onPress={() => { onPress={() => {
@@ -70,7 +70,7 @@ export const Locations = ({ redirectToLocationSettings }: Props) => {
<FlatList <FlatList
data={filteredLocations} data={filteredLocations}
contentContainerStyle={twStyle( contentContainerStyle={twStyle(
`py-5`, `py-6`,
filteredLocations.length === 0 && 'h-full items-center justify-center' filteredLocations.length === 0 && 'h-full items-center justify-center'
)} )}
keyExtractor={(location) => location.id.toString()} keyExtractor={(location) => location.id.toString()}
+2 -2
View File
@@ -25,7 +25,7 @@ export default function Tags({ viewStyle = 'list' }: Props) {
useNodes(tags.data?.nodes); useNodes(tags.data?.nodes);
const tagData = useCache(tags.data?.items); const tagData = useCache(tags.data?.items);
return ( return (
<ScreenContainer scrollview={false} style={tw`relative px-7 py-0`}> <ScreenContainer scrollview={false} style={tw`relative px-6 py-0`}>
<Pressable <Pressable
style={tw`absolute bottom-7 right-7 z-10 flex h-12 w-12 items-center justify-center rounded-full bg-accent`} style={tw`absolute bottom-7 right-7 z-10 flex h-12 w-12 items-center justify-center rounded-full bg-accent`}
onPress={() => { onPress={() => {
@@ -72,7 +72,7 @@ export default function Tags({ viewStyle = 'list' }: Props) {
showsHorizontalScrollIndicator={false} showsHorizontalScrollIndicator={false}
ItemSeparatorComponent={() => <View style={tw`h-2.5`} />} ItemSeparatorComponent={() => <View style={tw`h-2.5`} />}
contentContainerStyle={twStyle( contentContainerStyle={twStyle(
`py-5`, `py-6`,
tagData.length === 0 && 'h-full items-center justify-center' tagData.length === 0 && 'h-full items-center justify-center'
)} )}
/> />
@@ -126,7 +126,7 @@ const AppearanceSettingsScreen = ({
// TODO: Hook this up to the theme store once light theme is fixed. // TODO: Hook this up to the theme store once light theme is fixed.
return ( return (
<ScreenContainer scrollview={false} style={tw`gap-2 px-7`}> <ScreenContainer scrollview={false} style={tw`gap-2 px-6`}>
<SettingsTitle>Theme</SettingsTitle> <SettingsTitle>Theme</SettingsTitle>
<ScrollView <ScrollView
horizontal horizontal
@@ -8,7 +8,7 @@ const ExtensionsSettingsScreen = ({
navigation navigation
}: SettingsStackScreenProps<'ExtensionsSettings'>) => { }: SettingsStackScreenProps<'ExtensionsSettings'>) => {
return ( return (
<ScreenContainer style={tw`px-7`}> <ScreenContainer style={tw`px-6`}>
<Text style={tw`text-ink`}>TODO</Text> <Text style={tw`text-ink`}>TODO</Text>
</ScreenContainer> </ScreenContainer>
); );
@@ -16,7 +16,7 @@ const GeneralSettingsScreen = ({ navigation }: SettingsStackScreenProps<'General
if (!node) return null; if (!node) return null;
return ( return (
<ScreenContainer style={tw`justify-start gap-0 px-7`} scrollview={false}> <ScreenContainer style={tw`justify-start gap-0 px-6`} scrollview={false}>
<Card style={tw`bg-app-box`}> <Card style={tw`bg-app-box`}>
{/* Card Header */} {/* Card Header */}
<View style={tw`flex flex-row justify-between`}> <View style={tw`flex flex-row justify-between`}>
@@ -38,7 +38,7 @@ const GeneralSettingsScreen = ({ navigation }: SettingsStackScreenProps<'General
<SettingsTitle style={tw`mb-1`}>Node Name</SettingsTitle> <SettingsTitle style={tw`mb-1`}>Node Name</SettingsTitle>
<Input value={node.name} /> <Input value={node.name} />
{/* // TODO: Bring this back */} {/* // TODO: Bring this back */}
{/* <SettingsTitle style={tw`mb-1 mt-3`}>Node Port</SettingsTitle> */} {/* <SettingsTitle style={tw`mt-3 mb-1`}>Node Port</SettingsTitle> */}
{/* <Input value={node.p2p_port?.toString() ?? '5795'} keyboardType="numeric" /> */} {/* <Input value={node.p2p_port?.toString() ?? '5795'} keyboardType="numeric" /> */}
</Card> </Card>
{debugState.enabled && ( {debugState.enabled && (
@@ -92,7 +92,7 @@ const LibrarySettingsScreen = ({ navigation }: SettingsStackScreenProps<'Library
const modalRef = useRef<ModalRef>(null); const modalRef = useRef<ModalRef>(null);
return ( return (
<ScreenContainer style={tw`justify-start gap-0 px-7 py-0`} scrollview={false}> <ScreenContainer style={tw`justify-start gap-0 px-6 py-0`} scrollview={false}>
<Fade <Fade
fadeSides="top-bottom" fadeSides="top-bottom"
orientation="vertical" orientation="vertical"
@@ -1,11 +1,11 @@
import React from 'react'; import React from 'react';
import { Text, View } from 'react-native'; import { Text } from 'react-native';
import ScreenContainer from '~/components/layout/ScreenContainer'; import ScreenContainer from '~/components/layout/ScreenContainer';
import { tw } from '~/lib/tailwind'; import { tw } from '~/lib/tailwind';
const PrivacySettingsScreen = () => { const PrivacySettingsScreen = () => {
return ( return (
<ScreenContainer scrollview={false} style={tw`px-7`}> <ScreenContainer scrollview={false} style={tw`px-6`}>
<Text style={tw`text-ink`}>TODO</Text> <Text style={tw`text-ink`}>TODO</Text>
</ScreenContainer> </ScreenContainer>
); );
@@ -12,7 +12,7 @@ const AboutScreen = () => {
const buildInfo = useBridgeQuery(['buildInfo']); const buildInfo = useBridgeQuery(['buildInfo']);
return ( return (
<ScreenContainer style={tw`justify-start gap-0 px-7 py-5`}> <ScreenContainer style={tw`justify-start gap-0 px-6`}>
<View style={tw.style('flex flex-row items-center')}> <View style={tw.style('flex flex-row items-center')}>
<Image <Image
source={require('../../../../assets/icon.png')} source={require('../../../../assets/icon.png')}
@@ -109,7 +109,7 @@ const EditLocationSettingsScreen = ({
const fullRescan = useLibraryMutation('locations.fullRescan'); const fullRescan = useLibraryMutation('locations.fullRescan');
return ( return (
<ScreenContainer style={tw`px-7`}> <ScreenContainer style={tw`px-6`}>
{/* Inputs */} {/* Inputs */}
<View> <View>
<SettingsTitle style={tw`mb-1`}>Display Name</SettingsTitle> <SettingsTitle style={tw`mb-1`}>Display Name</SettingsTitle>
@@ -37,7 +37,7 @@ const LibraryGeneralSettingsScreen = (_: SettingsStackScreenProps<'LibraryGenera
}); });
return ( return (
<ScreenContainer scrollview={false} style={tw`justify-start px-7 py-0`}> <ScreenContainer scrollview={false} style={tw`justify-start px-6 py-0`}>
<View style={tw`pt-5`}> <View style={tw`pt-5`}>
<SettingsTitle style={tw`mb-1`}>Name</SettingsTitle> <SettingsTitle style={tw`mb-1`}>Name</SettingsTitle>
<Controller <Controller
@@ -9,7 +9,7 @@ const NodesSettingsScreen = ({ navigation }: SettingsStackScreenProps<'NodesSett
const onlineNodes = useDiscoveredPeers(); const onlineNodes = useDiscoveredPeers();
return ( return (
<ScreenContainer scrollview={false} style={tw`gap-0 px-7`}> <ScreenContainer scrollview={false} style={tw`gap-0 px-6`}>
<Text style={tw`text-ink`}>Pairing</Text> <Text style={tw`text-ink`}>Pairing</Text>
{[...onlineNodes.entries()].map(([id, node]) => ( {[...onlineNodes.entries()].map(([id, node]) => (