From 32069f2b8cd70a176af7b28136d6b658afd625dd Mon Sep 17 00:00:00 2001 From: keplyx Date: Wed, 29 Jan 2020 14:05:41 +0100 Subject: [PATCH] Fixed sidemenu image being cut off on some devices --- components/Sidebar.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/Sidebar.js b/components/Sidebar.js index 17f2bce..42eb3f0 100644 --- a/components/Sidebar.js +++ b/components/Sidebar.js @@ -8,6 +8,7 @@ import CustomMaterialIcon from '../components/CustomMaterialIcon'; import ThemeManager from "../utils/ThemeManager"; const deviceHeight = Dimensions.get("window").height; +const deviceWidth = Dimensions.get("window").width; const drawerCover = require("../assets/drawer-cover.png"); @@ -136,8 +137,8 @@ export default class SideBar extends React.Component { const styles = StyleSheet.create({ drawerCover: { - height: deviceHeight / 5, - width: deviceHeight / 2.5, + height: deviceWidth / 3, + width: 2 * deviceWidth / 3, position: "relative", marginBottom: 10, marginTop: 20