@chainplatform/layout 0.3.3 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainplatform/layout",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "@chainplatform/layout",
5
5
  "main": "index.js",
6
6
  "devDependencies": {
@@ -2,8 +2,8 @@ import * as mobiInfos from 'react-device-detect';
2
2
 
3
3
  let mobileCheck = mobiInfos;
4
4
  let os = "browser";
5
- if (typeof window.APP_CONFIG != "undefined" && typeof window.APP_CONFIG.os != "undefined") {
6
- os = window.APP_CONFIG.os;
5
+ if (typeof window.APP_INFOS != "undefined" && typeof window.APP_INFOS.os != "undefined") {
6
+ os = window.APP_INFOS.os;
7
7
  }
8
8
  mobileCheck.os = os;
9
9
  export default mobileCheck;
package/src/styles.js CHANGED
@@ -15,6 +15,7 @@ const sdkStyles = {
15
15
  DESKTOP: DESKTOP,
16
16
  REM: REM,
17
17
  barHeight: barHeight,
18
+ topBarHeight: mobileCheck.os == "mini_app" ? { height: 41 * REM } : { height: barHeight },
18
19
  headerHeight: mobileCheck.os == "mini_app" ? { height: 39 * REM } : { height: barHeight },
19
20
  headerRightContainerStyle: mobileCheck.os == "mini_app" ? { paddingRight: 80 * REM } : {},
20
21
  image_course_width: 356,