Fixed sidemenu image being cut off on some devices
这个提交包含在:
父节点
a38e251cb5
当前提交
32069f2b8c
共有 1 个文件被更改,包括 3 次插入 和 2 次删除
|
|
@ -8,6 +8,7 @@ import CustomMaterialIcon from '../components/CustomMaterialIcon';
|
||||||
import ThemeManager from "../utils/ThemeManager";
|
import ThemeManager from "../utils/ThemeManager";
|
||||||
|
|
||||||
const deviceHeight = Dimensions.get("window").height;
|
const deviceHeight = Dimensions.get("window").height;
|
||||||
|
const deviceWidth = Dimensions.get("window").width;
|
||||||
|
|
||||||
const drawerCover = require("../assets/drawer-cover.png");
|
const drawerCover = require("../assets/drawer-cover.png");
|
||||||
|
|
||||||
|
|
@ -136,8 +137,8 @@ export default class SideBar extends React.Component<Props, State> {
|
||||||
|
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
drawerCover: {
|
drawerCover: {
|
||||||
height: deviceHeight / 5,
|
height: deviceWidth / 3,
|
||||||
width: deviceHeight / 2.5,
|
width: 2 * deviceWidth / 3,
|
||||||
position: "relative",
|
position: "relative",
|
||||||
marginBottom: 10,
|
marginBottom: 10,
|
||||||
marginTop: 20
|
marginTop: 20
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用