@licklist/design 0.71.10 → 0.71.11

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.
@@ -1 +1 @@
1
- {"version":3,"file":"useResizePageBody.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/page/components/PageBody/hooks/useResizePageBody.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;eAMnB,MAAM;gBACL,MAAM;;CAiPjB,CAAA"}
1
+ {"version":3,"file":"useResizePageBody.d.ts","sourceRoot":"","sources":["../../../../../../src/iframe/page/components/PageBody/hooks/useResizePageBody.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;eAMnB,MAAM;gBACL,MAAM;;CAmPjB,CAAA"}
@@ -73,9 +73,11 @@ var useResizePageBody = function() {
73
73
  behavior: 'smooth'
74
74
  });
75
75
  }
76
- if (width <= MOBILE_WIDTH) return {
77
- maxHeight: height - STANDARD_BODY_PADDING - rightBlockHeight - CALENDAR_WRAPPER_HEIGHT
78
- };
76
+ if (width <= MOBILE_WIDTH && Boolean(CALENDAR_WRAPPER_HEIGHT)) {
77
+ return {
78
+ maxHeight: height - STANDARD_BODY_PADDING - rightBlockHeight - CALENDAR_WRAPPER_HEIGHT
79
+ };
80
+ }
79
81
  return {
80
82
  maxHeight: height - STANDARD_BODY_PADDING - rightBlockHeight - STANDARD_HEADER_FOOTER_SIZE - CALENDAR_WRAPPER_HEIGHT
81
83
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@licklist/design",
3
- "version": "0.71.10",
3
+ "version": "0.71.11",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
@@ -61,14 +61,16 @@ export const useResizePageBody = () => {
61
61
  })
62
62
  }
63
63
 
64
- if (width <= MOBILE_WIDTH) return {
65
- maxHeight:
66
- height -
67
- STANDARD_BODY_PADDING -
68
- rightBlockHeight -
69
- CALENDAR_WRAPPER_HEIGHT,
70
- }
71
-
64
+ if (width <= MOBILE_WIDTH && Boolean(CALENDAR_WRAPPER_HEIGHT)) {
65
+ return {
66
+ maxHeight:
67
+ height -
68
+ STANDARD_BODY_PADDING -
69
+ rightBlockHeight -
70
+ CALENDAR_WRAPPER_HEIGHT,
71
+ }
72
+
73
+ }
72
74
  return {
73
75
  maxHeight:
74
76
  height -