From 8f9e5251a0785ca00dd4be5f7db2c08597eb3a6e Mon Sep 17 00:00:00 2001 From: Rexogamer Date: Mon, 15 Jan 2024 20:54:19 +0000 Subject: [PATCH] feat: improve layout on desktop/tablets --- App.tsx | 52 +++++++++++++++++--------- src/components/common/BottomSheet.tsx | 1 + src/components/sheets/ProfileSheet.tsx | 4 +- 3 files changed, 38 insertions(+), 19 deletions(-) diff --git a/App.tsx b/App.tsx index 7509592..eb6ab7c 100644 --- a/App.tsx +++ b/App.tsx @@ -348,23 +348,41 @@ class MainView extends React.Component { {this.state.status === 'loggedIn' ? ( <> - this.setState({leftMenuOpen: open})} - menu={ - - } - style={styles.app} - bounceBackOnOverdraw={false}> - - + {Dimensions.get('window').width > + Dimensions.get('window').height ? ( + + + + + + + ) : ( + this.setState({leftMenuOpen: open})} + menu={ + + } + style={styles.app} + bounceBackOnOverdraw={false}> + + + )} { ) : ( <> - + { />