Skip to content

Commit 734b14e

Browse files
committed
Adjust button gaps
1 parent 8eb73ad commit 734b14e

File tree

11 files changed

+23
-18
lines changed

11 files changed

+23
-18
lines changed

src/app/about.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export default function AboutScreen(): ReactNode {
158158
/>
159159
</List.Section>
160160
</ScrollView>
161-
<View style={{padding: 16, gap: 8}}>
161+
<View style={{padding: 16, gap: 10}}>
162162
<Button
163163
mode="contained"
164164
buttonColor={theme.colors.primaryContainer}

src/app/backup.tsx

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {router, useLocalSearchParams} from 'expo-router';
22
import {type ReactNode, useEffect, useState} from 'react';
3+
import type {StyleProp, ViewStyle} from 'react-native';
34
import {Alert, ScrollView, View} from 'react-native';
45
import {Appbar, Button, Icon, List, TextInput} from 'react-native-paper';
56

@@ -184,7 +185,7 @@ function StepSetAccessCode({
184185
const valid = accessCodeValid && confirmAccessCodeValid;
185186

186187
return (
187-
<Step status="active" title="Set access code">
188+
<Step status="active" title="Set access code" style={{gap: 8}}>
188189
<TextInput
189190
mode="outlined"
190191
secureTextEntry
@@ -303,10 +304,12 @@ function StepFinalize({state}: {state: StepState}): ReactNode {
303304
function Step({
304305
status,
305306
title,
307+
style,
306308
children,
307309
}: {
308310
status: 'pending' | 'active' | 'done';
309311
title: string;
312+
style?: StyleProp<ViewStyle>;
310313
children?: ReactNode;
311314
}): ReactNode {
312315
const theme = useTheme();
@@ -350,12 +353,15 @@ function Step({
350353
right={() => null}
351354
>
352355
<View
353-
style={{
354-
paddingLeft: 48,
355-
paddingRight: 16,
356-
paddingBottom: 8,
357-
gap: 8,
358-
}}
356+
style={[
357+
{
358+
paddingLeft: 48,
359+
paddingRight: 16,
360+
paddingBottom: 8,
361+
gap: 10,
362+
},
363+
style,
364+
]}
359365
>
360366
{children}
361367
</View>

src/app/card-settings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export default function CardSettingsScreen(): ReactNode {
118118
</List.Section>
119119
)}
120120
</ScrollView>
121-
<View style={{margin: 16, gap: 8}}>
121+
<View style={{margin: 16, gap: 10}}>
122122
{card.backupStatus.status === 'active' && (
123123
<AsyncButton
124124
mode="contained"

src/app/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ export default function IndexScreen(): ReactNode {
237237
)}
238238
</ScrollView>
239239
{(pendingSessionRequests.length > 0 || wallets.length > 0) && (
240-
<View style={{margin: 16, gap: 8}}>
240+
<View style={{margin: 16, gap: 10}}>
241241
<View>
242242
{pendingSessionRequests.length > 0 && (
243243
<Button

src/app/session-authenticate.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export default function SessionAuthenticateScreen(): ReactNode {
101101
margin: 16,
102102
marginTop: 'auto',
103103
flexDirection: 'row',
104-
gap: 8,
104+
gap: 10,
105105
}}
106106
>
107107
<AsyncButton

src/app/session-proposal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export default function SessionProposalScreen(): ReactNode {
8080
margin: 16,
8181
marginTop: 'auto',
8282
flexDirection: 'row',
83-
gap: 8,
83+
gap: 10,
8484
}}
8585
>
8686
<AsyncButton

src/app/session.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export default function SessionScreen(): ReactNode {
268268
</List.Accordion>
269269
)}
270270
</ScrollView>
271-
<View style={{margin: 16, flexDirection: 'row', gap: 8}}>
271+
<View style={{margin: 16, flexDirection: 'row', gap: 10}}>
272272
<AsyncButton
273273
mode="contained"
274274
buttonColor={theme.colors.secondaryContainer}

src/app/wallet.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,9 @@ export default function WalletScreen(): ReactNode {
121121
))}
122122
</List.Section>
123123
</ScrollView>
124-
<View style={{margin: 16, gap: 8}}>
124+
<View style={{margin: 16, gap: 10}}>
125125
{addingDerivation && (
126126
<EditableTextInput
127-
style={{marginBottom: 8}}
128127
mode="outlined"
129128
label="Derivation"
130129
autoFocus

src/components/request-viewer/send-transaction.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export function SendTransaction({
173173
margin: 16,
174174
marginTop: 'auto',
175175
flexDirection: 'row',
176-
gap: 8,
176+
gap: 10,
177177
}}
178178
>
179179
<AsyncButton

src/components/request-viewer/sign-message.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export function SignMessage({session, request}: SignMessageProps): ReactNode {
103103
margin: 16,
104104
marginTop: 'auto',
105105
flexDirection: 'row',
106-
gap: 8,
106+
gap: 10,
107107
}}
108108
>
109109
<AsyncButton

0 commit comments

Comments
 (0)