Fix some more desktop web
This commit is contained in:
@@ -39,7 +39,12 @@ export const AppPasswords = withAuthRequired(
|
|||||||
if (store.me.appPasswords.length === 0) {
|
if (store.me.appPasswords.length === 0) {
|
||||||
return (
|
return (
|
||||||
<CenteredView
|
<CenteredView
|
||||||
style={[styles.container, pal.view]}
|
style={[
|
||||||
|
styles.container,
|
||||||
|
isDesktopWeb && styles.containerDesktop,
|
||||||
|
pal.view,
|
||||||
|
pal.border,
|
||||||
|
]}
|
||||||
testID="appPasswordsScreen">
|
testID="appPasswordsScreen">
|
||||||
<AppPasswordsHeader />
|
<AppPasswordsHeader />
|
||||||
<View style={[styles.empty, pal.viewLight]}>
|
<View style={[styles.empty, pal.viewLight]}>
|
||||||
@@ -49,7 +54,11 @@ export const AppPasswords = withAuthRequired(
|
|||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
{!isDesktopWeb && <View style={styles.flex1} />}
|
{!isDesktopWeb && <View style={styles.flex1} />}
|
||||||
<View style={styles.btnContainer}>
|
<View
|
||||||
|
style={[
|
||||||
|
styles.btnContainer,
|
||||||
|
isDesktopWeb && styles.btnContainerDesktop,
|
||||||
|
]}>
|
||||||
<Button
|
<Button
|
||||||
testID="appPasswordBtn"
|
testID="appPasswordBtn"
|
||||||
type="primary"
|
type="primary"
|
||||||
@@ -66,7 +75,12 @@ export const AppPasswords = withAuthRequired(
|
|||||||
// has app passwords
|
// has app passwords
|
||||||
return (
|
return (
|
||||||
<CenteredView
|
<CenteredView
|
||||||
style={[styles.container, pal.view]}
|
style={[
|
||||||
|
styles.container,
|
||||||
|
isDesktopWeb && styles.containerDesktop,
|
||||||
|
pal.view,
|
||||||
|
pal.border,
|
||||||
|
]}
|
||||||
testID="appPasswordsScreen">
|
testID="appPasswordsScreen">
|
||||||
<AppPasswordsHeader />
|
<AppPasswordsHeader />
|
||||||
<ScrollView
|
<ScrollView
|
||||||
@@ -187,6 +201,10 @@ const styles = StyleSheet.create({
|
|||||||
flex: 1,
|
flex: 1,
|
||||||
paddingBottom: isDesktopWeb ? 0 : 100,
|
paddingBottom: isDesktopWeb ? 0 : 100,
|
||||||
},
|
},
|
||||||
|
containerDesktop: {
|
||||||
|
borderLeftWidth: 1,
|
||||||
|
borderRightWidth: 1,
|
||||||
|
},
|
||||||
title: {
|
title: {
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
marginTop: 12,
|
marginTop: 12,
|
||||||
|
|||||||
Reference in New Issue
Block a user